summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
index 184f07a48e..afba37c1f0 100644
--- a/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
+++ b/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
@@ -4086,7 +4086,7 @@ void tst_QSslSocket::disabledProtocols()
QSslSocket socket;
QCOMPARE(socket.error(), QAbstractSocket::UnknownSocketError);
- socket.connectToHost(server.serverAddress(), server.serverPort());
+ socket.connectToHost(QHostAddress::LocalHost, server.serverPort());
QVERIFY(socket.waitForConnected(timeoutMS));
socket.setProtocol(disabledProtocol);
@@ -4111,7 +4111,7 @@ void tst_QSslSocket::disabledProtocols()
{loop.exitLoop();});
QTcpSocket client;
- client.connectToHost(server.serverAddress(), server.serverPort());
+ client.connectToHost(QHostAddress::LocalHost, server.serverPort());
loop.enterLoopMSecs(timeoutMS);
QVERIFY(!loop.timeout());
QVERIFY(server.socket);