summaryrefslogtreecommitdiff
path: root/tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp')
-rw-r--r--tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp b/tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp
index 5f0bb73..542ea00 100644
--- a/tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp
+++ b/tests/auto/core/qivipendingreply/tst_qivipendingreply.cpp
@@ -284,8 +284,8 @@ template <typename T> void tst_QIviPendingReply::qml_helper(TestObject *testObje
QCOMPARE(obj->property("replySuccess").toBool(), false);
QCOMPARE(obj->property("replyResultAvailable").toBool(), false);
- //Wait until the reply is ready
- QTest::qWait(100);
+ QSignalSpy spy(obj.data(), SIGNAL(callBackCalledChanged()));
+ spy.wait(1000);
QVERIFY(obj->property("callBackCalled").toBool());
QCOMPARE(obj->property("success").toBool(), !failed);