diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-20 11:02:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-20 11:02:20 +0200 |
commit | 3286940c783eb555c4b76ea95d501434a20ff498 (patch) | |
tree | 65b33c52febf89acc8fe30cf4e9035314d6a3680 /tests | |
parent | 96e824768304dbb52dff36ce8629b88caf458f84 (diff) | |
download | sink-3286940c783eb555c4b76ea95d501434a20ff498.tar.gz sink-3286940c783eb555c4b76ea95d501434a20ff498.zip |
Get both maildir and imap sync tests to work
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mailsynctest.cpp | 8 |
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 ¬ification) { | 473 | notifier->registerHandler([&](const Notification ¬ification) { |
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 | ||