[autotests] Try to make new QuickTilingTest addition more robust on CI

A wait on signalspy fails on CI and a TRY_COMPARE on the count of the
spy should be sufficient.
This commit is contained in:
Martin Flöser 2017-07-18 21:29:50 +02:00
parent bbbd2f6a24
commit 81c59a86dd

View file

@ -768,8 +768,7 @@ void QuickTilingTest::testScript()
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