summaryrefslogtreecommitdiffstats
path: root/tests/querytest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r--tests/querytest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp
index 98bf5a0..0b4bc7b 100644
--- a/tests/querytest.cpp
+++ b/tests/querytest.cpp
@@ -1877,14 +1877,12 @@ private slots:
1877 event2.setExtractedEndTime(QDateTime::fromString("2018-05-33T13:00:00Z", Qt::ISODate)); 1877 event2.setExtractedEndTime(QDateTime::fromString("2018-05-33T13:00:00Z", Qt::ISODate));
1878 VERIFYEXEC(Sink::Store::create<Event>(event2)); 1878 VERIFYEXEC(Sink::Store::create<Event>(event2));
1879 1879
1880 QTest::qWait(500); 1880 QTRY_COMPARE(model->rowCount(), 6);
1881 QCOMPARE(model->rowCount(), 6);
1882 1881
1883 VERIFYEXEC(Sink::Store::remove<Event>(event)); 1882 VERIFYEXEC(Sink::Store::remove<Event>(event));
1884 VERIFYEXEC(Sink::Store::remove<Event>(event2)); 1883 VERIFYEXEC(Sink::Store::remove<Event>(event2));
1885 1884
1886 QTest::qWait(500); 1885 QTRY_COMPARE(model->rowCount(), 5);
1887 QCOMPARE(model->rowCount(), 5);
1888 } 1886 }
1889 1887
1890 } 1888 }