X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/96f7a25b3d055c90d82cdb085add7d867ddc3df7..c527dc2172:/src/tests/placesitemmodeltest.cpp diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index 40ee47cbc..73204954b 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -735,10 +735,13 @@ 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 - QTRY_COMPARE(item->text(), sameItem->text()); + QCOMPARE(item->text(), sameItem->text()); } void PlacesItemModelTest::testIcons_data()