summaryrefslogtreecommitdiffstats
path: root/tests/mailsynctest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r--tests/mailsynctest.cpp8
1 files changed, 5 insertions, 3 deletions
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()
471 //Wait for the error notifiction 471 //Wait for the error notifiction
472 auto notifier = QSharedPointer<Sink::Notifier>::create(resource.identifier()); 472 auto notifier = QSharedPointer<Sink::Notifier>::create(resource.identifier());
473 notifier->registerHandler([&](const Notification &notification) { 473 notifier->registerHandler([&](const Notification &notification) {
474 SinkWarning() << "Received notification " << notification; 474 SinkTrace() << "Received notification " << notification;
475 if (notification.type == Sink::Notification::Error && notification.code == ApplicationDomain::ConnectionError) { 475 //Maildir detects misconfiguration, imap fails to connect
476 if (notification.type == Sink::Notification::Error &&
477 (notification.code == ApplicationDomain::ConnectionError ||
478 notification.code == ApplicationDomain::ConfigurationError)) {
476 errorReceived = true; 479 errorReceived = true;
477 SinkWarning() << "Sync return an error";
478 } 480 }
479 }); 481 });
480 482