From f46a77e07b51b2073ab7dbb0ba80440b45740441 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 25 Jul 2018 18:24:38 +0200 Subject: No random timeouts in tests --- tests/querytest.cpp | 6 ++---- 1 file 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: event2.setExtractedEndTime(QDateTime::fromString("2018-05-33T13:00:00Z", Qt::ISODate)); VERIFYEXEC(Sink::Store::create(event2)); - QTest::qWait(500); - QCOMPARE(model->rowCount(), 6); + QTRY_COMPARE(model->rowCount(), 6); VERIFYEXEC(Sink::Store::remove(event)); VERIFYEXEC(Sink::Store::remove(event2)); - QTest::qWait(500); - QCOMPARE(model->rowCount(), 5); + QTRY_COMPARE(model->rowCount(), 5); } } -- cgit v1.2.3