diff --git a/autotests/test_scripted_effectloader.cpp b/autotests/test_scripted_effectloader.cpp index 5c0743de1b..9af6248694 100644 --- a/autotests/test_scripted_effectloader.cpp +++ b/autotests/test_scripted_effectloader.cpp @@ -382,8 +382,7 @@ void TestScriptedEffectLoader::testLoadAllEffects() loader.queryAndLoadAll(); // let's use qWait as we need to wait for two signals to be emitted - QTest::qWait(100); - QCOMPARE(spy.size(), 2); + QTRY_COMPARE(spy.size(), 2); QStringList loadedEffects; for (auto &list : spy) { QCOMPARE(list.size(), 2);