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>
This commit is contained in:
Timur Pocheptsov 2019-01-08 15:03:24 +01:00
parent 574ac8734d
commit 0cc9c30479

View File

@ -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);