Commit fc2ebb4e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix autotest

parent fb33b8f9
Pipeline #106053 failed with stage
in 5 minutes and 28 seconds
......@@ -158,11 +158,13 @@ void FollowUpReminderConfigTest::shouldRemoveItems()
info.setUniqueIdentifier(uniq);
FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(mConfig, &info, false);
itemList = mConfig->groupList().filter(mFollowupRegExpFilter);
QCOMPARE(itemList.count(), 2);
uniq = 44;
info.setUniqueIdentifier(uniq);
FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(mConfig, &info, false);
itemList = mConfig->groupList().filter(mFollowupRegExpFilter);
QCOMPARE(itemList.count(), 3);
// Add item without uniqIdentifier
FollowUpReminder::FollowUpReminderInfo infoNotHaveUniq;
......@@ -207,8 +209,10 @@ void FollowUpReminderConfigTest::shouldNotRemoveItemWhenItemDoesntExist()
info.setTo(QStringLiteral("kmail.org"));
uniq = 43;
info.setUniqueIdentifier(uniq);
QCOMPARE(itemList.count(), 1);
FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(mConfig, &info, false);
itemList = mConfig->groupList().filter(mFollowupRegExpFilter);
QCOMPARE(itemList.count(), 2);
uniq = 44;
info.setUniqueIdentifier(uniq);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment