Commit 84400c07 authored by Ahmad Samir's avatar Ahmad Samir

kio_desktop: fix unit test

Use QTRY_VERIFY instead of QTest::qWait(), the hardcoded delay doesn't seem
to work anymore.
parent a94226bb
......@@ -167,8 +167,7 @@ private Q_SLOTS:
QTRY_COMPARE(spyFileRenamed.count(), 1);
QTRY_COMPARE(spyFileRenamedWithLocalPath.count(), 1);
// and then desktopnotifier notices something changed and emits KDirNotify::FilesAdded
QTest::qWait(250); // larger than KCoreDirLister::pendingUpdateTimer
QVERIFY(spyFilesAdded.count() >= 1); // can be 3, depending on kdirwatch's behaviour in desktopnotifier
QTRY_VERIFY(spyFilesAdded.count() >= 1); // can be 3, depending on kdirwatch's behaviour in desktopnotifier
// check that KDirLister now has the correct item (#382341)
if (lister) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment