From 30f9e2a570d8898ba3e4a104b0de7a4474295730 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Sun, 22 Nov 2020 23:56:44 +0000 Subject: [PATCH] [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. --- autotests/integration/decoration_input_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/integration/decoration_input_test.cpp b/autotests/integration/decoration_input_test.cpp index dd2d9f0830..9e465fcf4d 100644 --- a/autotests/integration/decoration_input_test.cpp +++ b/autotests/integration/decoration_input_test.cpp @@ -764,7 +764,7 @@ void DecorationInputTest::testTooltipDoesntEatKeyEvents() QVERIFY(c); QVERIFY(c->isDecorated()); QVERIFY(!c->noBorder()); - QTRY_COMPARE(enteredSpy.count(), 1); + QVERIFY(enteredSpy.wait()); QSignalSpy keyEvent(keyboard, &KWayland::Client::Keyboard::keyChanged); QVERIFY(keyEvent.isValid());