From 3b2b9e01f25815c15c302181670a60961bbac53e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sat, 27 Feb 2021 00:32:10 +0100 Subject: [PATCH] Fix GlobalShortcutsTest::testWaylandClientShortcut() --- autotests/integration/globalshortcuts_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/integration/globalshortcuts_test.cpp b/autotests/integration/globalshortcuts_test.cpp index 2886de2860..f750a9b12e 100644 --- a/autotests/integration/globalshortcuts_test.cpp +++ b/autotests/integration/globalshortcuts_test.cpp @@ -321,7 +321,7 @@ void GlobalShortcutsTest::testWaylandClientShortcut() shellSurface.reset(); surface.reset(); QVERIFY(Test::waitForWindowDestroyed(client)); - QVERIFY(workspace()->shortcutAvailable(seq)); + QTRY_VERIFY_WITH_TIMEOUT(workspace()->shortcutAvailable(seq), 500); //we need the try since KGlobalAccelPrivate::unregister is async } void GlobalShortcutsTest::testSetupWindowShortcut()