summaryrefslogtreecommitdiffstats
path: root/examples/mailtransportresource/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 11:46:48 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 11:46:48 +0200
commita547334afca38baae64e0f5774b1eb7f082a08e3 (patch)
tree667ad75cb4aa1652c79f6ceab8422d0d9848113e /examples/mailtransportresource/tests
parentdc33cea58f4b920f60648e81379c58bd62861b9b (diff)
downloadsink-a547334afca38baae64e0f5774b1eb7f082a08e3.tar.gz
sink-a547334afca38baae64e0f5774b1eb7f082a08e3.zip
Allow the preprocessor to move and use in mailtransport
Diffstat (limited to 'examples/mailtransportresource/tests')
-rw-r--r--examples/mailtransportresource/tests/mailtransporttest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp
index a30fc20..e4cc447 100644
--- a/examples/mailtransportresource/tests/mailtransporttest.cpp
+++ b/examples/mailtransportresource/tests/mailtransporttest.cpp
@@ -47,7 +47,8 @@ private slots:
47 47
48 void cleanup() 48 void cleanup()
49 { 49 {
50 VERIFYEXEC(ResourceControl::shutdown(mResourceInstanceIdentifier)); 50 VERIFYEXEC(Store::removeDataFromDisk(mResourceInstanceIdentifier));
51 VERIFYEXEC(Store::removeDataFromDisk(mStorageResource));
51 } 52 }
52 53
53 void init() 54 void init()
@@ -107,8 +108,8 @@ private slots:
107 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); 108 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier));
108 109
109 QTest::qWait(100); 110 QTest::qWait(100);
110 // auto mailsInOutbox = Store::read<ApplicationDomain::Mail>(Query().resourceFilter(mResourceInstanceIdentifier)); 111 auto mailsInOutbox = Store::read<ApplicationDomain::Mail>(Query().resourceFilter(mResourceInstanceIdentifier));
111 // QCOMPARE(mailsInOutbox.size(), 0); 112 QCOMPARE(mailsInOutbox.size(), 0);
112 113
113 auto mailsInDrafts = Store::read<ApplicationDomain::Mail>(Query().resourceFilter(mStorageResource)); 114 auto mailsInDrafts = Store::read<ApplicationDomain::Mail>(Query().resourceFilter(mStorageResource));
114 QCOMPARE(mailsInDrafts.size(), 1); 115 QCOMPARE(mailsInDrafts.size(), 1);