[autotests] Fix quick tile autotest race condition
We send two async actions via another process We do a wait for one We check that we received two events This is racey. QTRY_COMPARE can allow both events to arrive separately.
This commit is contained in:
parent
4a681e3d47
commit
494b67d610
1 changed files with 1 additions and 2 deletions
|
@ -775,8 +775,7 @@ void QuickTilingTest::testShortcut()
|
||||||
|
|
||||||
QSignalSpy quickTileChangedSpy(c, &AbstractClient::quickTileModeChanged);
|
QSignalSpy quickTileChangedSpy(c, &AbstractClient::quickTileModeChanged);
|
||||||
QVERIFY(quickTileChangedSpy.isValid());
|
QVERIFY(quickTileChangedSpy.isValid());
|
||||||
QVERIFY(quickTileChangedSpy.wait());
|
QTRY_COMPARE(quickTileChangedSpy.count(), numberOfQuickTileActions);
|
||||||
QCOMPARE(quickTileChangedSpy.count(), numberOfQuickTileActions);
|
|
||||||
// at this point the geometry did not yet change
|
// at this point the geometry did not yet change
|
||||||
QCOMPARE(c->frameGeometry(), QRect(0, 0, 100, 50));
|
QCOMPARE(c->frameGeometry(), QRect(0, 0, 100, 50));
|
||||||
// but quick tile mode already changed
|
// but quick tile mode already changed
|
||||||
|
|
Loading…
Reference in a new issue