diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-09 15:25:03 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-09 15:26:21 (GMT) |
commit | 9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a (patch) | |
tree | b3de56aedd0708b1addc67a8e3c4722aa04413fd /tests/auto/qhttpsocketengine | |
parent | 06add85eb8a9bd8f53acd162ce665d46e7ebc137 (diff) | |
download | Qt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.zip Qt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.tar.gz Qt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.tar.bz2 |
Autotest: fix network test failure
Diffstat (limited to 'tests/auto/qhttpsocketengine')
-rw-r--r-- | tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp b/tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp index ca12f2a..3a3ea79 100644 --- a/tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp +++ b/tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp @@ -506,7 +506,8 @@ void tst_QHttpSocketEngine::tcpSocketNonBlockingTest() // Connect socket.connectToHost(QtNetworkSettings::serverName(), 143); - QCOMPARE(socket.state(), QTcpSocket::HostLookupState); + QVERIFY(socket.state() == QTcpSocket::HostLookupState || + socket.state() == QTcpSocket::ConnectingState); QTestEventLoop::instance().enterLoop(30); if (QTestEventLoop::instance().timeout()) { |