]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[PlacesItemModelTest] Fix testHideItem()
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 7 Oct 2018 16:01:00 +0000 (18:01 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 7 Oct 2018 16:01:00 +0000 (18:01 +0200)
src/tests/placesitemmodeltest.cpp

index 695aa580a64bfd88e9be75bdc42cf12ad242a42d..e045e9198f1913eae8b942bac830a1e3e7440881 100644 (file)
@@ -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<KItemRangeList>();