Add failure tests to test_reference_counting (#7400)

This commit is contained in:
Edward Oakes
2020-03-17 10:30:21 -05:00
committed by GitHub
parent 7678418210
commit c1b0f9ccdf
10 changed files with 664 additions and 552 deletions
+6 -3
View File
@@ -198,10 +198,13 @@ def test_actor_reconstruction_without_task(ray_start_regular):
# Kill the actor.
pid = ray.get(actor.get_pid.remote())
os.kill(pid, signal.SIGKILL)
# Wait until the actor is reconstructed.
assert wait_for_condition(
lambda: ray.worker.global_worker.core_worker.object_exists(obj_ids[1]),
timeout_ms=5000)
def check_reconstructed():
worker = ray.worker.global_worker
return worker.core_worker.object_exists(obj_ids[1])
assert wait_for_condition(check_reconstructed)
def test_actor_reconstruction_on_node_failure(ray_start_cluster_head):