[autotests] Use QTR_COMPARE instead of QTest::qWait in TestScriptedEffectLoader

Hopefully makes the test more reliable on build.kde.org.
icc-effect-5.14.5
Martin Gräßlin 2016-08-16 14:07:14 +02:00
parent 2c333417fa
commit d68a3fecd7
1 changed files with 1 additions and 2 deletions

View File

@ -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);