From 0cc9c304798a436d844d3c2a51025729d888bfb2 Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Tue, 8 Jan 2019 15:03:24 +0100 Subject: [PATCH] disabledProtocol() - use the right address when connecting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... as we normally do in other tests, using localhost. Change-Id: I7969d7bfd50b545adae7e23476d17b6224e9a8fc Reviewed-by: MÃ¥rten Nordheim --- tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp | 4 ++-- 1 file 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);