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 /tests/mailsynctest.cpp | |
parent | e62f6ba8ec1c83196f78044b5dd905eeb80d4707 (diff) | |
download | sink-082029f3dedadaceef1524fec214e053b0a26d10.tar.gz sink-082029f3dedadaceef1524fec214e053b0a26d10.zip |
These jobs now work reliably.
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r-- | tests/mailsynctest.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp index 98ac685..7edda32 100644 --- a/tests/mailsynctest.cpp +++ b/tests/mailsynctest.cpp | |||
@@ -49,17 +49,12 @@ void MailSyncTest::initTestCase() | |||
49 | 49 | ||
50 | void MailSyncTest::cleanup() | 50 | void MailSyncTest::cleanup() |
51 | { | 51 | { |
52 | //TODO the shutdown job fails if the resource is already shut down | 52 | VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); |
53 | // VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); | ||
54 | ResourceControl::shutdown(mResourceInstanceIdentifier).exec().waitForFinished(); | ||
55 | removeResourceFromDisk(mResourceInstanceIdentifier); | 53 | removeResourceFromDisk(mResourceInstanceIdentifier); |
56 | } | 54 | } |
57 | 55 | ||
58 | void MailSyncTest::init() | 56 | void MailSyncTest::init() |
59 | { | 57 | { |
60 | qDebug(); | ||
61 | qDebug() << "-----------------------------------------"; | ||
62 | qDebug(); | ||
63 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); | 58 | VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); |
64 | } | 59 | } |
65 | 60 | ||