diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 18:24:38 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 18:24:38 +0200 |
commit | f46a77e07b51b2073ab7dbb0ba80440b45740441 (patch) | |
tree | 1e32ba36c541583dfabedcb83c798e16e3a0dcdf | |
parent | 898f35f2982e86f95c7fe061aa5e697c771a0d47 (diff) | |
download | sink-f46a77e07b51b2073ab7dbb0ba80440b45740441.tar.gz sink-f46a77e07b51b2073ab7dbb0ba80440b45740441.zip |
No random timeouts in tests
-rw-r--r-- | tests/querytest.cpp | 6 |
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 | } |