summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMÃ¥rten Nordheim <marten.nordheim@qt.io>2022-03-31 09:21:23 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-31 08:56:50 +0000
commitb258ca36b292a0ffefda643e9d5944097291dbb7 (patch)
tree2164f0a3f197c0fd9b128c69e6bc1cbe8c70f33e
parent987ffb2c0022eaf6088ebbbc04cf64456783ceea (diff)
downloadqtwebsockets-b258ca36b292a0ffefda643e9d5944097291dbb7.tar.gz
tst_QWebSocket: fix scope of ifdef proxy-check
Because other tests had made their way inside Change-Id: Ie6fa545a84c2f66e0c2617f498118a3e04eedd0c Reviewed-by: Arno Rehn <a.rehn@menlosystems.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit ebf82dc805354e8d9b1c2f0a45bad6594dbbbd22) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
index 329419c..7a27ad3 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -779,6 +779,7 @@ void tst_QWebSocket::tst_setProxy()
socket.setProxy(proxy);
QCOMPARE(socket.proxy(), proxy);
}
+#endif // QT_NO_NETWORKPROXY
void tst_QWebSocket::overlongCloseReason()
{
@@ -881,8 +882,6 @@ void tst_QWebSocket::testingFrameAndMessageSizeApi()
QTRY_COMPARE(maxAllowedIncomingMessageSize, socket.maxAllowedIncomingMessageSize());
}
-#endif // QT_NO_NETWORKPROXY
-
QTEST_MAIN(tst_QWebSocket)
#include "tst_qwebsocket.moc"