summaryrefslogtreecommitdiffstats
path: root/tests/databasepopulationandfacadequerybenchmark.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-17 16:39:36 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-17 16:39:36 +0200
commit49fdda2bc452ea93ebfdb43798ee8f486eb3975f (patch)
tree0c143ad045f882226562788696024f192aac2f1b /tests/databasepopulationandfacadequerybenchmark.cpp
parentfa8c30732eb59a9506bdb9731e782b1c037124ec (diff)
downloadsink-49fdda2bc452ea93ebfdb43798ee8f486eb3975f.tar.gz
sink-49fdda2bc452ea93ebfdb43798ee8f486eb3975f.zip
Use QUICK_TRY_VERIFY
Diffstat (limited to 'tests/databasepopulationandfacadequerybenchmark.cpp')
-rw-r--r--tests/databasepopulationandfacadequerybenchmark.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/databasepopulationandfacadequerybenchmark.cpp b/tests/databasepopulationandfacadequerybenchmark.cpp
index f965dd6..7dc649b 100644
--- a/tests/databasepopulationandfacadequerybenchmark.cpp
+++ b/tests/databasepopulationandfacadequerybenchmark.cpp
@@ -20,6 +20,7 @@
20#include "event_generated.h" 20#include "event_generated.h"
21#include "getrssusage.h" 21#include "getrssusage.h"
22#include "utils.h" 22#include "utils.h"
23#include "testutils.h"
23 24
24/** 25/**
25 * Benchmark read performance of the facade implementation. 26 * Benchmark read performance of the facade implementation.
@@ -114,7 +115,7 @@ class DatabasePopulationAndFacadeQueryBenchmark : public QObject
114 bool done = false; 115 bool done = false;
115 emitter->onInitialResultSetComplete([&done](const Sink::ApplicationDomain::Event::Ptr &event, bool) { done = true; }); 116 emitter->onInitialResultSetComplete([&done](const Sink::ApplicationDomain::Event::Ptr &event, bool) { done = true; });
116 emitter->fetch(Sink::ApplicationDomain::Event::Ptr()); 117 emitter->fetch(Sink::ApplicationDomain::Event::Ptr());
117 QTRY_VERIFY(done); 118 QUICK_TRY_VERIFY(done);
118 QCOMPARE(list.size(), count); 119 QCOMPARE(list.size(), count);
119 120
120 const auto elapsed = time.elapsed(); 121 const auto elapsed = time.elapsed();