diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-07 16:01:59 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-07 16:01:59 +0200 |
commit | 082029f3dedadaceef1524fec214e053b0a26d10 (patch) | |
tree | ae0013258c3b889a51be084850970fb5ff8eda6d /examples/imapresource/tests/imapmailsyncbenchmark.cpp | |
parent | e62f6ba8ec1c83196f78044b5dd905eeb80d4707 (diff) | |
download | sink-082029f3dedadaceef1524fec214e053b0a26d10.tar.gz sink-082029f3dedadaceef1524fec214e053b0a26d10.zip |
These jobs now work reliably.
Diffstat (limited to 'examples/imapresource/tests/imapmailsyncbenchmark.cpp')
-rw-r--r-- | examples/imapresource/tests/imapmailsyncbenchmark.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/imapresource/tests/imapmailsyncbenchmark.cpp b/examples/imapresource/tests/imapmailsyncbenchmark.cpp index 824b769..a53c148 100644 --- a/examples/imapresource/tests/imapmailsyncbenchmark.cpp +++ b/examples/imapresource/tests/imapmailsyncbenchmark.cpp | |||
@@ -90,17 +90,12 @@ private slots: | |||
90 | 90 | ||
91 | void cleanup() | 91 | void cleanup() |
92 | { | 92 | { |
93 | //TODO the shutdown job fails if the resource is already shut down | 93 | VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); |
94 | // VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); | ||
95 | ResourceControl::shutdown(mResourceInstanceIdentifier).exec().waitForFinished(); | ||
96 | removeResourceFromDisk(mResourceInstanceIdentifier); | 94 | removeResourceFromDisk(mResourceInstanceIdentifier); |
97 | } | 95 | } |
98 | 96 | ||
99 | void init() | 97 | void init() |
100 | { | 98 | { |
101 | qDebug(); | ||
102 | qDebug() << "-----------------------------------------"; | ||
103 | qDebug(); | ||
104 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); | 99 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); |
105 | } | 100 | } |
106 | 101 | ||