Stabilize debug client test.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 10 Nov 2011 05:59:50 +0000 (15:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 Nov 2011 05:43:47 +0000 (06:43 +0100)
Change-Id: I1f43d754b618ef44a26b749c279fced6636358f8
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>

tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp

index 1587eee..82e2559 100644 (file)
@@ -162,7 +162,7 @@ void tst_QDeclarativeDebugClient::sequentialConnect()
     QCOMPARE(m_conn->state(), QAbstractSocket::UnconnectedState);
 
     // Make sure that the disconnect is actually delivered to the server
-    QGuiApplication::processEvents();
+    QTest::qWait(100);
 
     connection2.connectToHost("127.0.0.1", PORT);
     QTest::ignoreMessage(QtWarningMsg, "QDeclarativeDebugServer: Connection established");