Merge master <-> api_changes
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qquickfolderlistmodel / tst_qquickfolderlistmodel.cpp
index a6d90cf..3761929 100644 (file)
@@ -170,8 +170,8 @@ void tst_qquickfolderlistmodel::refresh()
 
     flm->setProperty("sortReversed", true);
 
-    QCOMPARE(removeStart, 0);
-    QCOMPARE(removeEnd, count-1);
+    QTRY_COMPARE(removeStart, 0);
+    QTRY_COMPARE(removeEnd, count-1); // wait for refresh
 }
 
 QTEST_MAIN(tst_qquickfolderlistmodel)