Skip to content

Commit

Permalink
Increase timeout for ray.wait test (#5273)
Browse files Browse the repository at this point in the history
* Increase test timeout for ray.wait

* make sure the actor is scheduled
  • Loading branch information
stephanie-wang authored Jul 25, 2019
1 parent bf9199a commit 3321555
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/ray/tests/test_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ def decorated_method(self, x):
@pytest.mark.skipif(
pytest_timeout is None,
reason="Timeout package not installed; skipping test that may hang.")
@pytest.mark.timeout(10)
@pytest.mark.timeout(20)
@pytest.mark.parametrize(
"ray_start_cluster", [{
"num_cpus": 1,
Expand Down Expand Up @@ -2744,9 +2744,13 @@ def wait(self):
_, self.unready = ray.wait(self.unready, timeout=0)
return len(self.unready) == 0

def ping(self):
return

# Repeatedly call ray.wait through the local actor until the exception for
# the dead actor is received.
parent_actor = ParentActor.remote(ping_ids)
ray.get(parent_actor.ping.remote())
failure_detected = False
while not failure_detected:
failure_detected = ray.get(parent_actor.wait.remote())

0 comments on commit 3321555

Please sign in to comment.