From bf00b2c3a0fbfbdcbd7c5f4ab519049dc02c1263 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 30 Jan 2015 01:10:37 +0100 Subject: 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. --- tests/dummyresourcetest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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: void cleanup() { - //TODO kill the synchronizer first? + Akonadi2::Store::shutdown("org.kde.dummy"); removeFromDisk("org.kde.dummy"); removeFromDisk("org.kde.dummy.userqueue"); removeFromDisk("org.kde.dummy.synchronizerqueue"); removeFromDisk("org.kde.dummy.index.uid"); + auto factory = Akonadi2::ResourceFactory::load("org.kde.dummy"); + QVERIFY(factory); } void testProcessCommand() -- cgit v1.2.3