From 7ac1e222090ecfaa27ea8de2950e8c98a5033137 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 7 Jul 2016 11:57:43 +0200 Subject: Fix imap tests after trash addition --- tests/mailsynctest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp index faaf003..953adbf 100644 --- a/tests/mailsynctest.cpp +++ b/tests/mailsynctest.cpp @@ -197,6 +197,10 @@ void MailSyncTest::testListFolderHierarchy() QVERIFY(names.contains("Drafts")); names.removeAll("Drafts"); } + if (mCapabilities.contains(ResourceCapabilities::Mail::trash)) { + QVERIFY(names.contains("Trash")); + names.removeAll("Trash"); + } QCOMPARE(names.size(), 3); QCOMPARE(map.value("sub")->getParent(), map.value("test")->identifier()); }); -- cgit v1.2.3