From: Elvis Angelaccio Date: Sun, 7 Oct 2018 16:01:00 +0000 (+0200) Subject: [PlacesItemModelTest] Fix testHideItem() X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e99827293bea035b99e4f1e1881821ce378bd253?ds=inline [PlacesItemModelTest] Fix testHideItem() --- diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index 695aa580a..e045e9198 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -511,7 +511,7 @@ void PlacesItemModelTest::testHideItem() item->setHidden(true); // check if items removed was fired - QTRY_COMPARE(m_model->count(), 16); + QTRY_COMPARE(m_model->count(), m_expectedModelCount - 1); QCOMPARE(spyItemsRemoved.count(), 1); spyItemsRemovedArgs = spyItemsRemoved.takeFirst(); removedRange = spyItemsRemovedArgs.at(0).value();