From cb657315068a57a05300d0f25dba3b27db9f57cb Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 6 Dec 2015 19:02:20 +0100 Subject: Use Akonadi2::Store::ChildrenFetchedRole --- tests/dummyresourcetest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/dummyresourcetest.cpp') diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index b8711a2..0e1f382 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp @@ -239,7 +239,7 @@ private Q_SLOTS: //Test remove { auto model = Akonadi2::Store::loadModel(query); - //TODO ensure the initial query is done + QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool()); QTRY_COMPARE(model->rowCount(QModelIndex()), 0); } } @@ -255,7 +255,7 @@ private Q_SLOTS: query.propertyFilter.insert("uid", "testuid"); auto model = Akonadi2::Store::loadModel(query); - //TODO ensure the initial query is done + QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool()); Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1"); event.setProperty("uid", "testuid"); -- cgit v1.2.3