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

Hopefully makes the test more reliable on build.kde.org.
This commit is contained in:
Martin Gräßlin 2016-08-16 14:07:14 +02:00
parent 2c333417fa
commit d68a3fecd7

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