summaryrefslogtreecommitdiffstats
path: root/tests/mailsynctest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:35:52 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-15 17:35:52 +0100
commit9279222977dc3705a1e14f6bd7dbdbf0c2166c06 (patch)
treecd45afb5ac5081f3bf86f5e66a6d2a49c1551df6 /tests/mailsynctest.cpp
parent7bd037fae43c963d5f67e9447b3ee6875591a2c7 (diff)
downloadsink-9279222977dc3705a1e14f6bd7dbdbf0c2166c06.tar.gz
sink-9279222977dc3705a1e14f6bd7dbdbf0c2166c06.zip
The directory was just not existing because no file was in it.
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r--tests/mailsynctest.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp
index 31e40c4..96a2daa 100644
--- a/tests/mailsynctest.cpp
+++ b/tests/mailsynctest.cpp
@@ -110,12 +110,8 @@ void MailSyncTest::testListFolders()
110 names.removeAll("Trash"); 110 names.removeAll("Trash");
111 QVERIFY(specialPurposeFolders.contains(SpecialPurpose::Mail::trash)); 111 QVERIFY(specialPurposeFolders.contains(SpecialPurpose::Mail::trash));
112 } 112 }
113 //Silently ignore the inbox folder 113 auto set = QSet<QString>{"INBOX", "test"};
114 if (specialPurposeFolders.contains(SpecialPurpose::Mail::inbox)) { 114 QCOMPARE(names.toSet(), set);
115 names.removeAll("INBOX");
116 }
117 QCOMPARE(names.size(), 1);
118 QVERIFY(names.contains("test"));
119 }); 115 });
120 VERIFYEXEC(job); 116 VERIFYEXEC(job);
121} 117}