diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-20 16:02:38 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-20 16:02:38 +0100 |
commit | 1864024012213dc0a17c76e9755bf50a19944ec7 (patch) | |
tree | 06690c35c05c29deec30a3dd412d4043e2c956a3 /tests/databasepopulationandfacadequerybenchmark.cpp | |
parent | 6625bb5a2145008ad47ae963e1546714b7342bf0 (diff) | |
download | sink-1864024012213dc0a17c76e9755bf50a19944ec7.tar.gz sink-1864024012213dc0a17c76e9755bf50a19944ec7.zip |
Report when we don't have any more to fetch.
... so we can use that information in fetchMore.
Diffstat (limited to 'tests/databasepopulationandfacadequerybenchmark.cpp')
-rw-r--r-- | tests/databasepopulationandfacadequerybenchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/databasepopulationandfacadequerybenchmark.cpp b/tests/databasepopulationandfacadequerybenchmark.cpp index f1904ad..6bd2051 100644 --- a/tests/databasepopulationandfacadequerybenchmark.cpp +++ b/tests/databasepopulationandfacadequerybenchmark.cpp | |||
@@ -112,7 +112,7 @@ class DatabasePopulationAndFacadeQueryBenchmark : public QObject | |||
112 | QList<Sink::ApplicationDomain::Event::Ptr> list; | 112 | QList<Sink::ApplicationDomain::Event::Ptr> list; |
113 | emitter->onAdded([&list](const Sink::ApplicationDomain::Event::Ptr &event) { list << event; }); | 113 | emitter->onAdded([&list](const Sink::ApplicationDomain::Event::Ptr &event) { list << event; }); |
114 | bool done = false; | 114 | bool done = false; |
115 | emitter->onInitialResultSetComplete([&done](const Sink::ApplicationDomain::Event::Ptr &event) { done = true; }); | 115 | emitter->onInitialResultSetComplete([&done](const Sink::ApplicationDomain::Event::Ptr &event, bool) { done = true; }); |
116 | emitter->fetch(Sink::ApplicationDomain::Event::Ptr()); | 116 | emitter->fetch(Sink::ApplicationDomain::Event::Ptr()); |
117 | QTRY_VERIFY(done); | 117 | QTRY_VERIFY(done); |
118 | QCOMPARE(list.size(), count); | 118 | QCOMPARE(list.size(), count); |