diff options
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index c020c6b..370acd2 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -72,11 +72,11 @@ private Q_SLOTS: | |||
72 | int num = 100; | 72 | int num = 100; |
73 | QList<KAsync::Future<void> > waitCondition; | 73 | QList<KAsync::Future<void> > waitCondition; |
74 | for (int i = 0; i < num; i++) { | 74 | for (int i = 0; i < num; i++) { |
75 | Akonadi2::ApplicationDomain::Event event; | 75 | Akonadi2::ApplicationDomain::Event event("org.kde.dummy.instance1"); |
76 | event.setProperty("uid", "testuid"); | 76 | event.setProperty("uid", "testuid"); |
77 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); | 77 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); |
78 | event.setProperty("summary", "summaryValue"); | 78 | event.setProperty("summary", "summaryValue"); |
79 | waitCondition << Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec(); | 79 | waitCondition << Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event).exec(); |
80 | } | 80 | } |
81 | waitForCompletion(waitCondition).exec().waitForFinished(); | 81 | waitForCompletion(waitCondition).exec().waitForFinished(); |
82 | auto appendTime = time.elapsed(); | 82 | auto appendTime = time.elapsed(); |