summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-20 10:52:46 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-20 10:52:46 +0200
commit96e824768304dbb52dff36ce8629b88caf458f84 (patch)
tree963b0e12978bf4ba40e9e13504412bc33eb0e00d /tests
parent160f3153cffb110f5b52e244485ccbc2c15b002c (diff)
downloadsink-96e824768304dbb52dff36ce8629b88caf458f84.tar.gz
sink-96e824768304dbb52dff36ce8629b88caf458f84.zip
We now get a connectionerror
Diffstat (limited to 'tests')
-rw-r--r--tests/mailsynctest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp
index 75454c0..7378465 100644
--- a/tests/mailsynctest.cpp
+++ b/tests/mailsynctest.cpp
@@ -468,14 +468,14 @@ void MailSyncTest::testFailingSync()
468 468
469 bool errorReceived = false; 469 bool errorReceived = false;
470 470
471 //We currently don't get a proper error notification except for the status change 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 SinkTrace() << "Received notification " << notification.type << notification.id; 474 SinkWarning() << "Received notification " << notification;
475 if (notification.code == ApplicationDomain::ErrorStatus) { 475 if (notification.type == Sink::Notification::Error && notification.code == ApplicationDomain::ConnectionError) {
476 errorReceived = true; 476 errorReceived = true;
477 SinkWarning() << "Sync return an error"; 477 SinkWarning() << "Sync return an error";
478 } 478 }
479 }); 479 });
480 480
481 VERIFYEXEC(Store::synchronize(query)); 481 VERIFYEXEC(Store::synchronize(query));