Commit 494b67d6 authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

[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.
parent 4a681e3d
......@@ -775,8 +775,7 @@ void QuickTilingTest::testShortcut()
QSignalSpy quickTileChangedSpy(c, &AbstractClient::quickTileModeChanged);
QCOMPARE(quickTileChangedSpy.count(), numberOfQuickTileActions);
QTRY_COMPARE(quickTileChangedSpy.count(), numberOfQuickTileActions);
// at this point the geometry did not yet change
QCOMPARE(c->frameGeometry(), QRect(0, 0, 100, 50));
// but quick tile mode already changed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment