diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-25 14:37:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-25 14:37:37 +0100 |
commit | 43e282c172c4b5604a4f0d9b70976fc0df00120f (patch) | |
tree | 658046eb73c1c31d30d942821f08e7bb68083f55 /tests/dummyresourcetest.cpp | |
parent | 3fc8ce958fc244e64a3a3a92f3b1440aae04133b (diff) | |
download | sink-43e282c172c4b5604a4f0d9b70976fc0df00120f.tar.gz sink-43e282c172c4b5604a4f0d9b70976fc0df00120f.zip |
debug output, fixed dummyresourcetest
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 5508452..6548659 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -34,6 +34,7 @@ private Q_SLOTS: | |||
34 | 34 | ||
35 | void cleanup() | 35 | void cleanup() |
36 | { | 36 | { |
37 | //TODO kill the synchronizer first? | ||
37 | removeFromDisk("org.kde.dummy"); | 38 | removeFromDisk("org.kde.dummy"); |
38 | removeFromDisk("org.kde.dummy.userqueue"); | 39 | removeFromDisk("org.kde.dummy.userqueue"); |
39 | removeFromDisk("org.kde.dummy.synchronizerqueue"); | 40 | removeFromDisk("org.kde.dummy.synchronizerqueue"); |
@@ -111,7 +112,7 @@ private Q_SLOTS: | |||
111 | Akonadi2::Query query; | 112 | Akonadi2::Query query; |
112 | query.resources << "org.kde.dummy"; | 113 | query.resources << "org.kde.dummy"; |
113 | query.syncOnDemand = false; | 114 | query.syncOnDemand = false; |
114 | query.processAll = false; | 115 | query.processAll = true; |
115 | 116 | ||
116 | query.propertyFilter.insert("uid", "testuid"); | 117 | query.propertyFilter.insert("uid", "testuid"); |
117 | async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query)); | 118 | async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query)); |
@@ -131,8 +132,10 @@ private Q_SLOTS: | |||
131 | auto future = job.exec(); | 132 | auto future = job.exec(); |
132 | future.waitForFinished(); | 133 | future.waitForFinished(); |
133 | QVERIFY(!future.errorCode()); | 134 | QVERIFY(!future.errorCode()); |
134 | QTRY_VERIFY(future.isFinished()); | 135 | QVERIFY(future.isFinished()); |
135 | QVERIFY(!resource.error()); | 136 | QVERIFY(!resource.error()); |
137 | auto processAllMessagesFuture = resource.processAllMessages().exec(); | ||
138 | processAllMessagesFuture.waitForFinished(); | ||
136 | } | 139 | } |
137 | 140 | ||
138 | void testSyncAndFacade() | 141 | void testSyncAndFacade() |