summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-01-08 15:03:24 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-01-09 05:36:45 +0000
commit0cc9c304798a436d844d3c2a51025729d888bfb2 (patch)
tree9977b70d918258b3482bd4c1c8a7fb0707271512 /tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
parent574ac8734d99133387ceab6025d93d1cf202711e (diff)
disabledProtocol() - use the right address when connecting
... as we normally do in other tests, using localhost. Change-Id: I7969d7bfd50b545adae7e23476d17b6224e9a8fc Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp')
-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);