diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 11:45:15 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 11:45:15 +0100 |
commit | 7daeec83233c522980d5e477fee82045de57f77d (patch) | |
tree | 5e03d11d23c764eb03f27393fcc37c0529405e10 /tests/clientapitest.cpp | |
parent | af8baff21529b5bc47725da3e9e00ec81e5b6f1b (diff) | |
download | sink-7daeec83233c522980d5e477fee82045de57f77d.tar.gz sink-7daeec83233c522980d5e477fee82045de57f77d.zip |
syncThen is no longer necessary
Diffstat (limited to 'tests/clientapitest.cpp')
-rw-r--r-- | tests/clientapitest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index 544b981..8fc76df 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -276,7 +276,7 @@ private slots: | |||
276 | 276 | ||
277 | bool gotValue = false; | 277 | bool gotValue = false; |
278 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) | 278 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) |
279 | .syncThen<void, Sink::ApplicationDomain::Event>([&gotValue](const Sink::ApplicationDomain::Event &event) { gotValue = true; }) | 279 | .then([&gotValue](const Sink::ApplicationDomain::Event &event) { gotValue = true; }) |
280 | .exec(); | 280 | .exec(); |
281 | result.waitForFinished(); | 281 | result.waitForFinished(); |
282 | QVERIFY(!result.errorCode()); | 282 | QVERIFY(!result.errorCode()); |