From 9279222977dc3705a1e14f6bd7dbdbf0c2166c06 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 15 Dec 2016 17:35:52 +0100 Subject: The directory was just not existing because no file was in it. --- tests/mailsynctest.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') 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() names.removeAll("Trash"); QVERIFY(specialPurposeFolders.contains(SpecialPurpose::Mail::trash)); } - //Silently ignore the inbox folder - if (specialPurposeFolders.contains(SpecialPurpose::Mail::inbox)) { - names.removeAll("INBOX"); - } - QCOMPARE(names.size(), 1); - QVERIFY(names.contains("test")); + auto set = QSet{"INBOX", "test"}; + QCOMPARE(names.toSet(), set); }); VERIFYEXEC(job); } -- cgit v1.2.3