From 96e824768304dbb52dff36ce8629b88caf458f84 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 20 Sep 2017 10:52:46 +0200 Subject: We now get a connectionerror --- tests/mailsynctest.cpp | 8 ++++---- 1 file 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() bool errorReceived = false; - //We currently don't get a proper error notification except for the status change + //Wait for the error notifiction auto notifier = QSharedPointer::create(resource.identifier()); notifier->registerHandler([&](const Notification ¬ification) { - SinkTrace() << "Received notification " << notification.type << notification.id; - if (notification.code == ApplicationDomain::ErrorStatus) { + SinkWarning() << "Received notification " << notification; + if (notification.type == Sink::Notification::Error && notification.code == ApplicationDomain::ConnectionError) { errorReceived = true; SinkWarning() << "Sync return an error"; - } + } }); VERIFYEXEC(Store::synchronize(query)); -- cgit v1.2.3