From 0cc3c72dc2e40716bb6db9e011f21324c185faff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 31 Mar 2022 09:21:23 +0200 Subject: tst_QWebSocket: fix scope of ifdef proxy-check Because other tests had made their way inside Change-Id: Ie6fa545a84c2f66e0c2617f498118a3e04eedd0c Reviewed-by: Arno Rehn Reviewed-by: Timur Pocheptsov (cherry picked from commit ebf82dc805354e8d9b1c2f0a45bad6594dbbbd22) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp | 3 +-- 1 file changed, 1 insertion(+), 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" -- cgit v1.2.3