summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-09 15:25:03 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-09 15:26:21 (GMT)
commit9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a (patch)
treeb3de56aedd0708b1addc67a8e3c4722aa04413fd
parent06add85eb8a9bd8f53acd162ce665d46e7ebc137 (diff)
downloadQt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.zip
Qt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.tar.gz
Qt-9fd909e427b6d7c6a7d20b5cd28c9d860c52b73a.tar.bz2
Autotest: fix network test failure
-rw-r--r--tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp3
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()) {