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

Merge branch 'fix/random_timeout' into 'master'

Be more tolerant of slow GC in the tests

See merge request !73
parents f80186ab 36cdca5e
No related branches found
No related tags found
1 merge request!73Be more tolerant of slow GC in the tests
Pipeline #2891423 passed
......@@ -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