summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-30 01:10:37 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-30 01:10:37 +0100
commitbf00b2c3a0fbfbdcbd7c5f4ab519049dc02c1263 (patch)
tree1facb41649496418c5a2120391917e28302f8270 /tests/dummyresourcetest.cpp
parente7743002a75d83e24de94f712fac0f0b61ab0ca3 (diff)
downloadsink-bf00b2c3a0fbfbdcbd7c5f4ab519049dc02c1263.tar.gz
sink-bf00b2c3a0fbfbdcbd7c5f4ab519049dc02c1263.zip
Shutdown command for synchronizers, used by the dummyresourcetest.
Otherwise the synchronizer keeps a Storage object alive, while the tests deletes the db. This causes subsequent writes to fail in the next test.
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r--tests/dummyresourcetest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp
index 6548659..b185664 100644
--- a/tests/dummyresourcetest.cpp
+++ b/tests/dummyresourcetest.cpp
@@ -34,11 +34,13 @@ private Q_SLOTS:
34 34
35 void cleanup() 35 void cleanup()
36 { 36 {
37 //TODO kill the synchronizer first? 37 Akonadi2::Store::shutdown("org.kde.dummy");
38 removeFromDisk("org.kde.dummy"); 38 removeFromDisk("org.kde.dummy");
39 removeFromDisk("org.kde.dummy.userqueue"); 39 removeFromDisk("org.kde.dummy.userqueue");
40 removeFromDisk("org.kde.dummy.synchronizerqueue"); 40 removeFromDisk("org.kde.dummy.synchronizerqueue");
41 removeFromDisk("org.kde.dummy.index.uid"); 41 removeFromDisk("org.kde.dummy.index.uid");
42 auto factory = Akonadi2::ResourceFactory::load("org.kde.dummy");
43 QVERIFY(factory);
42 } 44 }
43 45
44 void testProcessCommand() 46 void testProcessCommand()