Fix GlobalShortcutsTest::testWaylandClientShortcut()

This commit is contained in:
Aleix Pol 2021-02-27 00:32:10 +01:00 committed by Aleix Pol Gonzalez
parent e4bed6ea27
commit 3b2b9e01f2

View file

@ -321,7 +321,7 @@ void GlobalShortcutsTest::testWaylandClientShortcut()
shellSurface.reset(); shellSurface.reset();
surface.reset(); surface.reset();
QVERIFY(Test::waitForWindowDestroyed(client)); 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() void GlobalShortcutsTest::testSetupWindowShortcut()