Skip to content
Snippets Groups Projects
Commit 36cdca5e authored by Philip Elson's avatar Philip Elson :snake:
Browse files

Be more tolerant of slow GC in the tests.

parent f80186ab
No related branches found
No related tags found
1 merge request!73Be more tolerant of slow GC in the tests
......@@ -830,7 +830,10 @@ def test_subscription_callback_object_deletion(japc, japc_mock):
gc.collect()
# Java GC is not instant, so let's give it a chance to finish.
time.sleep(0.1)
for _ in range(10):
if destroyed:
break
time.sleep(0.1)
assert destroyed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment