From 98219b3d2b761ca35b4547ab445dd9b994550f3b Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Mon, 6 Jan 2025 02:16:34 +0200 Subject: [PATCH] tests: wait for actual context menu closure in context menu test --- test/test_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_app.py b/test/test_app.py index a360020a4..fbd514b37 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -320,8 +320,9 @@ def test_context_menu_leak( shell_test_hook.MouseDown() shell_test_hook.MouseUp() - shell_test_hook.Later(shellhook.LaterType.BEFORE_REDRAW) - app_debug_dbus_interface.WaitFrame() + with glibutil.SignalQueue().connect(shell_test_hook, 'WindowUnmanaged') as window_unmanaged: + window_unmanaged.get(dbusutil.DEFAULT_TIMEOUT_MS) + app_debug_dbus_interface.WaitIdle() dump_post = tmp_path / 'heap-post.dump'