Skip to content

Commit

Permalink
tests: wait for actual context menu closure in context menu test
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Jan 6, 2025
1 parent a2827ce commit 98219b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 98219b3

Please sign in to comment.