diff options
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 10cd7e3..1a4d6ca 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "commands.h" | 12 | #include "commands.h" |
13 | #include "entitybuffer.h" | 13 | #include "entitybuffer.h" |
14 | #include "resourceconfig.h" | 14 | #include "resourceconfig.h" |
15 | #include "pipeline.h" | ||
15 | 16 | ||
16 | static void removeFromDisk(const QString &name) | 17 | static void removeFromDisk(const QString &name) |
17 | { | 18 | { |
@@ -133,10 +134,9 @@ private Q_SLOTS: | |||
133 | 134 | ||
134 | void testResourceSync() | 135 | void testResourceSync() |
135 | { | 136 | { |
136 | Akonadi2::Pipeline pipeline("org.kde.dummy.instance1"); | 137 | auto pipeline = QSharedPointer<Akonadi2::Pipeline>::create("org.kde.dummy.instance1"); |
137 | DummyResource resource("org.kde.dummy.instance1"); | 138 | DummyResource resource("org.kde.dummy.instance1", pipeline); |
138 | resource.configurePipeline(&pipeline); | 139 | auto job = resource.synchronizeWithSource(); |
139 | auto job = resource.synchronizeWithSource(&pipeline); | ||
140 | //TODO pass in optional timeout? | 140 | //TODO pass in optional timeout? |
141 | auto future = job.exec(); | 141 | auto future = job.exec(); |
142 | future.waitForFinished(); | 142 | future.waitForFinished(); |