aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-08 13:51:32 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-08 13:51:32 (GMT)
commit8f4bcd969dfd4e243532b96643c98749ae666a2b (patch)
tree6488e1f138908ed1a740f3f1459e0175dcdfa61c
parent87633ed7bb8db3b22eaed5a372091fc2793ce0aa (diff)
Make ChangeRecorderTest more robust
-rw-r--r--autotests/libs/changerecordertest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/autotests/libs/changerecordertest.cpp b/autotests/libs/changerecordertest.cpp
index 3795573..46ec03e 100644
--- a/autotests/libs/changerecordertest.cpp
+++ b/autotests/libs/changerecordertest.cpp
@@ -75,6 +75,7 @@ private Q_SLOTS:
QString lastAction;
ChangeRecorder *rec = createChangeRecorder();
+ AkonadiTest::akWaitForSignal(rec, SIGNAL(monitorReady()), 1000);
QVERIFY(rec->isEmpty());
Q_FOREACH (const QString &action, actions) {
qDebug() << action;
@@ -84,6 +85,7 @@ private Q_SLOTS:
// Check saving and loading from disk
delete rec;
rec = createChangeRecorder();
+ AkonadiTest::akWaitForSignal(rec, SIGNAL(monitorReady()), 1000);
} else if (action.at(0) == QLatin1Char('c')) {
// c1 = "trigger change on item 1"
const int id = action.mid(1).toInt();