From 3286940c783eb555c4b76ea95d501434a20ff498 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 20 Sep 2017 11:02:20 +0200 Subject: Get both maildir and imap sync tests to work --- tests/mailsynctest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp index 7378465..ecfb9e4 100644 --- a/tests/mailsynctest.cpp +++ b/tests/mailsynctest.cpp @@ -471,10 +471,12 @@ void MailSyncTest::testFailingSync() //Wait for the error notifiction auto notifier = QSharedPointer::create(resource.identifier()); notifier->registerHandler([&](const Notification ¬ification) { - SinkWarning() << "Received notification " << notification; - if (notification.type == Sink::Notification::Error && notification.code == ApplicationDomain::ConnectionError) { + SinkTrace() << "Received notification " << notification; + //Maildir detects misconfiguration, imap fails to connect + if (notification.type == Sink::Notification::Error && + (notification.code == ApplicationDomain::ConnectionError || + notification.code == ApplicationDomain::ConfigurationError)) { errorReceived = true; - SinkWarning() << "Sync return an error"; } }); -- cgit v1.2.3