diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-21 12:05:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-21 12:11:45 +0200 |
commit | af0f69d6c267d231d01b69525b91add8309e43e0 (patch) | |
tree | d0807066f3bb230daf1877504326e9666f4a7c46 /tests/dummyresourcebenchmark.cpp | |
parent | 98a057260f51b8af2cf3f933119e08590cc0639b (diff) | |
download | sink-af0f69d6c267d231d01b69525b91add8309e43e0.tar.gz sink-af0f69d6c267d231d01b69525b91add8309e43e0.zip |
ClientAPI: Don't require an explicit instance identifier
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(); |