[autotests] Fix decoration input test

QTRY_COMPARE doesn't work well with how we do our wayland event
dispatching.

We know the client hasn't processed any events yet, so we can safely do
a normal wait.
This commit is contained in:
David Edmundson 2020-11-22 23:56:44 +00:00
parent 71ce1f7a5b
commit 30f9e2a570

View file

@ -764,7 +764,7 @@ void DecorationInputTest::testTooltipDoesntEatKeyEvents()
QVERIFY(c); QVERIFY(c);
QVERIFY(c->isDecorated()); QVERIFY(c->isDecorated());
QVERIFY(!c->noBorder()); QVERIFY(!c->noBorder());
QTRY_COMPARE(enteredSpy.count(), 1); QVERIFY(enteredSpy.wait());
QSignalSpy keyEvent(keyboard, &KWayland::Client::Keyboard::keyChanged); QSignalSpy keyEvent(keyboard, &KWayland::Client::Keyboard::keyChanged);
QVERIFY(keyEvent.isValid()); QVERIFY(keyEvent.isValid());