summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-07 16:01:59 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-07 16:01:59 +0200
commit082029f3dedadaceef1524fec214e053b0a26d10 (patch)
treeae0013258c3b889a51be084850970fb5ff8eda6d /examples
parente62f6ba8ec1c83196f78044b5dd905eeb80d4707 (diff)
downloadsink-082029f3dedadaceef1524fec214e053b0a26d10.tar.gz
sink-082029f3dedadaceef1524fec214e053b0a26d10.zip
These jobs now work reliably.
Diffstat (limited to 'examples')
-rw-r--r--examples/imapresource/tests/imapmailsyncbenchmark.cpp7
-rw-r--r--examples/mailtransportresource/tests/mailtransporttest.cpp5
2 files changed, 3 insertions, 9 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
diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp
index e44aa23..410e17b 100644
--- a/examples/mailtransportresource/tests/mailtransporttest.cpp
+++ b/examples/mailtransportresource/tests/mailtransporttest.cpp
@@ -41,13 +41,12 @@ private slots:
41 41
42 void cleanup() 42 void cleanup()
43 { 43 {
44 // VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); 44 VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier));
45 // removeResourceFromDisk(mResourceInstanceIdentifier);
46 } 45 }
47 46
48 void init() 47 void init()
49 { 48 {
50 // VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier)); 49 VERIFYEXEC(ResourceControl::start(mResourceInstanceIdentifier));
51 } 50 }
52 51
53 void testSendMail() 52 void testSendMail()