From b4662f5a5513d4c34fc1db1cd9ed647d71ea72d5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 9 Feb 2016 11:28:35 +0100 Subject: Use removeDataFromDisk --- tests/dummyresourcebenchmark.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index 6c37c09..089fc08 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp @@ -76,8 +76,7 @@ private Q_SLOTS: void testCommandResponsiveness() { //Test responsiveness including starting the process. - Sink::Store::shutdown("org.kde.dummy.instance1").exec().waitForFinished(); - DummyResource::removeFromDisk("org.kde.dummy.instance1"); + Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); QTime time; time.start(); @@ -109,7 +108,7 @@ private Q_SLOTS: void testWriteToFacade() { - DummyResource::removeFromDisk("org.kde.dummy.instance1"); + Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); QTime time; time.start(); @@ -174,7 +173,7 @@ private Q_SLOTS: void testWriteInProcess() { - DummyResource::removeFromDisk("org.kde.dummy.instance1"); + Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); QTime time; time.start(); @@ -262,7 +261,7 @@ private Q_SLOTS: //This allows to run individual parts without doing a cleanup, but still cleaning up normally void testCleanupForCompleteTest() { - DummyResource::removeFromDisk("org.kde.dummy.instance1"); + Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); } private: -- cgit v1.2.3