diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 11:28:35 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 11:28:35 +0100 |
commit | b4662f5a5513d4c34fc1db1cd9ed647d71ea72d5 (patch) | |
tree | 313ad9ce52ac99deadd1a885ae754fe65835c802 | |
parent | ee4db9ecf6150c7d002bc9a356cadf178cd5cb74 (diff) | |
download | sink-b4662f5a5513d4c34fc1db1cd9ed647d71ea72d5.tar.gz sink-b4662f5a5513d4c34fc1db1cd9ed647d71ea72d5.zip |
Use removeDataFromDisk
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 9 |
1 files 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: | |||
76 | void testCommandResponsiveness() | 76 | void testCommandResponsiveness() |
77 | { | 77 | { |
78 | //Test responsiveness including starting the process. | 78 | //Test responsiveness including starting the process. |
79 | Sink::Store::shutdown("org.kde.dummy.instance1").exec().waitForFinished(); | 79 | Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); |
80 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | ||
81 | 80 | ||
82 | QTime time; | 81 | QTime time; |
83 | time.start(); | 82 | time.start(); |
@@ -109,7 +108,7 @@ private Q_SLOTS: | |||
109 | 108 | ||
110 | void testWriteToFacade() | 109 | void testWriteToFacade() |
111 | { | 110 | { |
112 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | 111 | Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); |
113 | 112 | ||
114 | QTime time; | 113 | QTime time; |
115 | time.start(); | 114 | time.start(); |
@@ -174,7 +173,7 @@ private Q_SLOTS: | |||
174 | 173 | ||
175 | void testWriteInProcess() | 174 | void testWriteInProcess() |
176 | { | 175 | { |
177 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | 176 | Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); |
178 | QTime time; | 177 | QTime time; |
179 | time.start(); | 178 | time.start(); |
180 | 179 | ||
@@ -262,7 +261,7 @@ private Q_SLOTS: | |||
262 | //This allows to run individual parts without doing a cleanup, but still cleaning up normally | 261 | //This allows to run individual parts without doing a cleanup, but still cleaning up normally |
263 | void testCleanupForCompleteTest() | 262 | void testCleanupForCompleteTest() |
264 | { | 263 | { |
265 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | 264 | Sink::Store::removeDataFromDisk("org.kde.dummy.instance1").exec().waitForFinished(); |
266 | } | 265 | } |
267 | 266 | ||
268 | private: | 267 | private: |