Commit 2b537887 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Make collectionmodifyhandlertest more robust

Use QTR_COMPARE instead of QCOMPARE when waiting for QSignalSpy.
parent 88f96002
......@@ -162,7 +162,7 @@ private Q_SLOTS:
QVERIFY(notificationSpy->isEmpty() || notificationSpy->takeFirst().first().value<Protocol::ChangeNotificationList>().isEmpty());
return;
}
QCOMPARE(notificationSpy->count(), 1);
QTRY_COMPARE(notificationSpy->count(), 1);
//Only one notify call
QCOMPARE(notificationSpy->first().count(), 1);
const auto receivedNotifications = notificationSpy->first().first().value<Protocol::ChangeNotificationList>();
......
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