aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-11-25 23:03:24 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-28 07:45:43 +0100
commit00909a4262671c685dc4f5f004746d39fdcf29ad (patch)
treecbf2f193bd889a699f4f2c86563611bada246a09 /tests
parenta736f72ad2ef3d5b72d9396c314570643cec8220 (diff)
qdeclarativedebugclient: Fix flaky autotest
The connectToHost() call can try to establish the connection directly (synchronously), in which case the warning message will be output before the subsequent ignoreMessage() call, causing the test to fail. Change-Id: I08a6a7d4d090cbb942c348e0787b586c71318f99 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp b/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
index 46a711ae78..343399b690 100644
--- a/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
+++ b/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
@@ -148,9 +148,9 @@ void tst_QDeclarativeDebugClient::parallelConnect()
{
QDeclarativeDebugConnection connection2;
- connection2.connectToHost("127.0.0.1", PORT);
QTest::ignoreMessage(QtWarningMsg, "QDeclarativeDebugServer: Another client is already connected");
// will connect & immediately disconnect
+ connection2.connectToHost("127.0.0.1", PORT);
QVERIFY(connection2.waitForConnected());
QTRY_COMPARE(connection2.state(), QAbstractSocket::UnconnectedState);
QVERIFY(m_conn->isConnected());