summaryrefslogtreecommitdiffstats
path: root/client/test/clientapitest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/test/clientapitest.cpp')
-rw-r--r--client/test/clientapitest.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/client/test/clientapitest.cpp b/client/test/clientapitest.cpp
index bff910b..2d1c238 100644
--- a/client/test/clientapitest.cpp
+++ b/client/test/clientapitest.cpp
@@ -37,15 +37,9 @@ private Q_SLOTS:
37 Akonadi2::Query query; 37 Akonadi2::Query query;
38 query.resources << "dummyresource"; 38 query.resources << "dummyresource";
39 39
40 auto result = Akonadi2::Store::load<Akonadi2::Domain::Event>(query); 40 async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query));
41 41 result.exec();
42 QList<Akonadi2::Domain::Event::Ptr> resultSet; 42 QCOMPARE(result.size(), 1);
43 result->onAdded([&resultSet](const Akonadi2::Domain::Event::Ptr &event){ resultSet << event; qDebug() << "result added";});
44
45 bool complete;
46 result->onComplete([&complete]{ complete = true; qDebug() << "complete";});
47
48 QTRY_VERIFY(complete);
49 } 43 }
50 44
51}; 45};