summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));