[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:
parent
2c333417fa
commit
d68a3fecd7
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue