diff options
Diffstat (limited to 'tests/clientapitest.cpp')
-rw-r--r-- | tests/clientapitest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index b1e49c4..b5405cf 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -70,7 +70,7 @@ public: | |||
70 | } | 70 | } |
71 | resultProvider->initialResultSetComplete(parent); | 71 | resultProvider->initialResultSetComplete(parent); |
72 | }); | 72 | }); |
73 | auto job = KAsync::start<void>([query, resultProvider]() {}); | 73 | auto job = KAsync::syncStart<void>([query, resultProvider]() {}); |
74 | mResultProvider = resultProvider; | 74 | mResultProvider = resultProvider; |
75 | return qMakePair(job, emitter); | 75 | return qMakePair(job, emitter); |
76 | } | 76 | } |
@@ -273,7 +273,7 @@ private slots: | |||
273 | 273 | ||
274 | bool gotValue = false; | 274 | bool gotValue = false; |
275 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) | 275 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) |
276 | .then<void, Sink::ApplicationDomain::Event>([&gotValue](const Sink::ApplicationDomain::Event &event) { gotValue = true; }) | 276 | .syncThen<void, Sink::ApplicationDomain::Event>([&gotValue](const Sink::ApplicationDomain::Event &event) { gotValue = true; }) |
277 | .exec(); | 277 | .exec(); |
278 | result.waitForFinished(); | 278 | result.waitForFinished(); |
279 | QVERIFY(!result.errorCode()); | 279 | QVERIFY(!result.errorCode()); |