From e1a5e5bad493bcf1cebf4a297345ec8cb50a8d5e Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Sat, 6 Feb 2021 06:08:43 +0800 Subject: [PATCH] Fix test_actor_restart (#13901) --- python/ray/tests/test_actor_failures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/ray/tests/test_actor_failures.py b/python/ray/tests/test_actor_failures.py index 4e2e19f1b..f26f87a0c 100644 --- a/python/ray/tests/test_actor_failures.py +++ b/python/ray/tests/test_actor_failures.py @@ -115,6 +115,8 @@ def test_actor_restart(ray_init_with_task_retry_delay): ray.get(results[0]) except ray.exceptions.RayActorError: results.pop(0) + else: + break # Check all tasks that executed after the restart. if results: # The actor executed some tasks after the restart.