diff options
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
239 | //Test remove | 239 | //Test remove |
240 | { | 240 | { |
241 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); | 241 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); |
242 | //TODO ensure the initial query is done | 242 | QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool()); |
243 | QTRY_COMPARE(model->rowCount(QModelIndex()), 0); | 243 | QTRY_COMPARE(model->rowCount(QModelIndex()), 0); |
244 | } | 244 | } |
245 | } | 245 | } |
@@ -255,7 +255,7 @@ private Q_SLOTS: | |||
255 | query.propertyFilter.insert("uid", "testuid"); | 255 | query.propertyFilter.insert("uid", "testuid"); |
256 | 256 | ||
257 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); | 257 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); |
258 | //TODO ensure the initial query is done | 258 | QTRY_VERIFY(model->data(QModelIndex(), Akonadi2::Store::ChildrenFetchedRole).toBool()); |
259 | 259 | ||
260 | Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1"); | 260 | Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1"); |
261 | event.setProperty("uid", "testuid"); | 261 | event.setProperty("uid", "testuid"); |