diff --git a/pyjapc/tests/test_pyjapc.py b/pyjapc/tests/test_pyjapc.py
index 9d97eb91a8ed3b6274a9cbfd94abf8e33f8bbf43..2b6a0dd71eb4627ad73c6e8e026e72a9d57e7a24 100644
--- a/pyjapc/tests/test_pyjapc.py
+++ b/pyjapc/tests/test_pyjapc.py
@@ -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