┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/placesitemmodeltest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/placesitemmodeltest.cpp')
-rw-r--r--src/tests/placesitemmodeltest.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp
index 40ee47cbc..c05ce6882 100644
--- a/src/tests/placesitemmodeltest.cpp
+++ b/src/tests/placesitemmodeltest.cpp
@@ -43,6 +43,11 @@ Q_DECLARE_METATYPE(KItemRange)
#define KDE_ROOT_PATH "/"
#endif
+namespace
+{
+ constexpr int TIMEOUT = 10000;
+}
+
static QString bookmarksFile()
{
return QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/user-places.xbel";
@@ -738,7 +743,7 @@ void PlacesItemModelTest::testRefresh()
m_model->refresh();
// item must be equal
- QTRY_COMPARE(item->text(), sameItem->text());
+ QTRY_COMPARE_WITH_TIMEOUT(item->text(), sameItem->text(), TIMEOUT);
}
void PlacesItemModelTest::testIcons_data()