From 44744e281a56488c7ef257e12ca379ec4ceb2cdd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 8 Feb 2016 21:34:06 +0100 Subject: Executed database removal in the resource instead of the client. The resource doesn't really notify all clients properly about the removal, but the tests all still pass. --- tests/dummyresourcetest.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 82c713d..c5b2f30 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp @@ -31,11 +31,7 @@ private Q_SLOTS: void cleanup() { - Sink::Store::shutdown(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); - DummyResource::removeFromDisk("org.kde.dummy.instance1"); - auto factory = Sink::ResourceFactory::load("org.kde.dummy"); - QVERIFY(factory); - Sink::Store::start(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); + Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); } void init() -- cgit v1.2.3