From 5118d9470cb6eaf63f7175042250eeb98222549d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 9 Aug 2017 19:22:36 +0200 Subject: [PATCH] [autotests] Try making QuickTilingTest::testShortcut more robust It failed on CI. A possibility is that the wait for the quick tile changed took to long, so that the next wait already passed and thus failed. Instead of wait a QTRY_COMPARE on the size of the signalspy. --- autotests/integration/quick_tiling_test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autotests/integration/quick_tiling_test.cpp b/autotests/integration/quick_tiling_test.cpp index 52adf8c880..ffee16ce20 100644 --- a/autotests/integration/quick_tiling_test.cpp +++ b/autotests/integration/quick_tiling_test.cpp @@ -678,8 +678,7 @@ void QuickTilingTest::testShortcut() QCOMPARE(c->quickTileMode(), expectedMode); // but we got requested a new geometry - QVERIFY(sizeChangeSpy.wait()); - QCOMPARE(sizeChangeSpy.count(), 1); + QTRY_COMPARE(sizeChangeSpy.count(), 1); QCOMPARE(sizeChangeSpy.first().first().toSize(), expectedGeometry.size()); // attach a new image