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()