diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-14 18:52:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-14 18:52:04 +0100 |
commit | 78284e0963d93e3e0f85e2165013412580a3b8c1 (patch) | |
tree | b4f0b5750c3f27ad107cc66358bd7b930b8399bc /tests/dummyresourcebenchmark.cpp | |
parent | 7de95983b30ca414c04bb3f877b67c1b7e9d6fa0 (diff) | |
download | sink-78284e0963d93e3e0f85e2165013412580a3b8c1.tar.gz sink-78284e0963d93e3e0f85e2165013412580a3b8c1.zip |
Got rid of all uses of Query::syncOnDemand and Query::processAll
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index aad86c0..c52eee3 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -92,9 +92,7 @@ private Q_SLOTS: | |||
92 | { | 92 | { |
93 | Akonadi2::Query query; | 93 | Akonadi2::Query query; |
94 | query.resources << "org.kde.dummy.instance1"; | 94 | query.resources << "org.kde.dummy.instance1"; |
95 | query.syncOnDemand = false; | 95 | Akonadi2::Store::flushMessageQueue(query.resources).exec().waitForFinished(); |
96 | query.processAll = true; | ||
97 | Akonadi2::Store::synchronize(query).exec().waitForFinished(); | ||
98 | } | 96 | } |
99 | auto allProcessedTime = time.elapsed(); | 97 | auto allProcessedTime = time.elapsed(); |
100 | 98 | ||
@@ -123,8 +121,6 @@ private Q_SLOTS: | |||
123 | time.start(); | 121 | time.start(); |
124 | Akonadi2::Query query; | 122 | Akonadi2::Query query; |
125 | query.resources << "org.kde.dummy.instance1"; | 123 | query.resources << "org.kde.dummy.instance1"; |
126 | query.syncOnDemand = false; | ||
127 | query.processAll = false; | ||
128 | 124 | ||
129 | query.propertyFilter.insert("uid", "testuid"); | 125 | query.propertyFilter.insert("uid", "testuid"); |
130 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); | 126 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); |