Skip to content

Commit

Permalink
tests/app: add WaitIdle() in cli leak test
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Sep 28, 2024
1 parent 0e33a30 commit 0f6d9e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def test_cli_leak(
assert test_file.read_text() == '1\n'

dump_pre = tmp_path / 'heap-pre.dump'
app_debug_dbus_interface.WaitIdle()
app_debug_dbus_interface.GC()
app_debug_dbus_interface.DumpHeap(dump_pre)

Expand All @@ -209,6 +210,7 @@ def test_cli_leak(
assert test_file.read_text() == '2\n'

dump_post = tmp_path / 'heap-post.dump'
app_debug_dbus_interface.WaitIdle()
app_debug_dbus_interface.GC()
app_debug_dbus_interface.DumpHeap(dump_post)

Expand Down

0 comments on commit 0f6d9e7

Please sign in to comment.