X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c527dc217234e6a2dba4d9ee08945c17b9a215bd..d6c086ad04:/src/tests/placesitemmodeltest.cpp diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index 73204954b..40ee47cbc 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -735,13 +735,10 @@ void PlacesItemModelTest::testRefresh() QVERIFY(item->text() != sameItem->text()); // propagate change - QEventLoop eventLoop; - connect(m_model, &PlacesItemModel::sourceModelDataChanged, &eventLoop, &QEventLoop::quit); m_model->refresh(); - eventLoop.exec(); // item must be equal - QCOMPARE(item->text(), sameItem->text()); + QTRY_COMPARE(item->text(), sameItem->text()); } void PlacesItemModelTest::testIcons_data()