From 5905ceed8a4f46399ba4b6b93ef71beb14c855fd Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 12 Jun 2015 17:21:19 +0200 Subject: Don't wait forever in QQmlDebugClient test The test is intended to wait for 5 seconds but in fact it waited for 5 * 30.1 seconds. Change-Id: Id2af7513fc7af6ab5e67d04d802a24744483f5e1 Reviewed-by: Joerg Bornemann --- tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/auto/qml/debugger') diff --git a/tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp b/tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp index 7ca69b6d44..99ba06ae31 100644 --- a/tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp +++ b/tests/auto/qml/debugger/qqmldebugclient/tst_qqmldebugclient.cpp @@ -76,9 +76,8 @@ void tst_QQmlDebugClient::initTestCase() for (int i = 0; i < 50; ++i) { // try for 5 seconds ... m_conn->connectToHost("127.0.0.1", PORT); - if (m_conn->waitForConnected()) + if (m_conn->waitForConnected(100)) break; - QTest::qSleep(100); } QVERIFY(m_conn->isConnected()); -- cgit v1.2.3