summaryrefslogtreecommitdiffstats
path: root/tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp')
-rw-r--r--tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp b/tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp
index 8bda5f5641..018b7c2a35 100644
--- a/tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp
+++ b/tests/auto/dbus/qdbusthreading/tst_qdbusthreading.cpp
@@ -414,8 +414,7 @@ void tst_QDBusThreading::registerObjectInOtherThread()
QCOMPARE(functionSpy, Object_method);
QCOMPARE(threadSpy, th);
- QTest::qWait(100);
- QCOMPARE(signalSpy, 1);
+ QTRY_COMPARE(signalSpy, 1);
sem2.acquire(); // the object is gone
functionSpy = NoMethod;
@@ -462,8 +461,7 @@ void tst_QDBusThreading::registerAdaptorInOtherThread()
QCOMPARE(functionSpy, Adaptor_method);
QCOMPARE(threadSpy, th);
- QTest::qWait(100);
- QCOMPARE(signalSpy, 1);
+ QTRY_COMPARE(signalSpy, 1);
functionSpy = NoMethod;
threadSpy = 0;