Fix AkonadiStorageTest::shouldNotifyTagAdded() flakiness.

Authored by dfaure on Jan 31 2019, 9:16 PM.

Description

Fix AkonadiStorageTest::shouldNotifyTagAdded() flakiness.

Summary:
On akonadiserver side, if NotificationSubscriber::modifySubscription
happens before NotificationCollector::tagNotification, everything works.
But if it happens the other way around, the notification comes with no
attributes (therefore no "display name").

This solution is the same as what TagTest::testMonitor() in akonadi/autotests/libs/tagtest.cpp

Test Plan:
ctest -R tests-units-akonadi-akonadistoragetest |& less
(and look for shouldNotifyTagAdded)

Reviewers: ervin

Reviewed By: ervin

Subscribers: Zanshin

Differential Revision: https://phabricator.kde.org/D18634

Details

Committed
dfaureFeb 2 2019, 10:55 AM
Reviewer
ervin
Differential Revision
D18634: Fix AkonadiStorageTest::shouldNotifyTagAdded() flakiness.
Parents
R4:e1bd105a616c: Remove test about emails collection, not fetched anymore
Branches
Unknown
Tags
Unknown