[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.
This commit is contained in:
Martin Gräßlin 2017-08-09 19:22:36 +02:00
parent 5ff9aa7cf5
commit 5118d9470c

View file

@ -678,8 +678,7 @@ void QuickTilingTest::testShortcut()
QCOMPARE(c->quickTileMode(), expectedMode); QCOMPARE(c->quickTileMode(), expectedMode);
// but we got requested a new geometry // but we got requested a new geometry
QVERIFY(sizeChangeSpy.wait()); QTRY_COMPARE(sizeChangeSpy.count(), 1);
QCOMPARE(sizeChangeSpy.count(), 1);
QCOMPARE(sizeChangeSpy.first().first().toSize(), expectedGeometry.size()); QCOMPARE(sizeChangeSpy.first().first().toSize(), expectedGeometry.size());
// attach a new image // attach a new image