Commit 4d83c159 authored by David Edmundson's avatar David Edmundson
Browse files

Make KIOslave test more robust

KCoreDirLister is backed by a 200ms timer which means it can have stale
results.
parent 9eb6e160
...@@ -172,9 +172,7 @@ private Q_SLOTS: ...@@ -172,9 +172,7 @@ private Q_SLOTS:
// check that KDirLister now has the correct item (#382341) // check that KDirLister now has the correct item (#382341)
if (lister) { if (lister) {
const KFileItem fileItem = lister->findByUrl(destUrl); QTRY_COMPARE(lister->findByUrl(destUrl).targetUrl(), QUrl::fromLocalFile(destFilePath));
QVERIFY(!fileItem.isNull());
QCOMPARE(fileItem.targetUrl(), QUrl::fromLocalFile(destFilePath));
} }
} }
......
Supports Markdown
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