summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcebenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r--tests/dummyresourcebenchmark.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp
index ffaa8f6..8c6afb4 100644
--- a/tests/dummyresourcebenchmark.cpp
+++ b/tests/dummyresourcebenchmark.cpp
@@ -13,6 +13,8 @@
13#include "log.h" 13#include "log.h"
14#include "resourceconfig.h" 14#include "resourceconfig.h"
15#include "notification_generated.h" 15#include "notification_generated.h"
16#include "test.h"
17#include "testutils.h"
16 18
17#include "hawd/dataset.h" 19#include "hawd/dataset.h"
18#include "hawd/formatter.h" 20#include "hawd/formatter.h"
@@ -98,8 +100,8 @@ private slots:
98 // Ensure everything is processed 100 // Ensure everything is processed
99 { 101 {
100 Sink::Query query; 102 Sink::Query query;
101 query.resources << "sink.dummy.instance1"; 103 query.resourceFilter("sink.dummy.instance1");
102 Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); 104 VERIFYEXEC(Sink::ResourceControl::flushMessageQueue(QByteArrayList() << "sink.dummy.instance1"));
103 } 105 }
104 auto allProcessedTime = time.elapsed(); 106 auto allProcessedTime = time.elapsed();
105 107
@@ -127,7 +129,7 @@ private slots:
127 { 129 {
128 time.start(); 130 time.start();
129 Sink::Query query; 131 Sink::Query query;
130 query.resources << "sink.dummy.instance1"; 132 query.resourceFilter("sink.dummy.instance1");
131 133
132 query.filter("uid", Sink::Query::Comparator("testuid")); 134 query.filter("uid", Sink::Query::Comparator("testuid"));
133 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); 135 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query);