Skip to content

Commit

Permalink
use gen_cluster timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 committed Jun 21, 2021
1 parent 97f9d60 commit c3539c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions distributed/tests/test_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def f(block, ps=None):


@pytest.mark.flaky(reruns=10, reruns_delay=5)
@gen_cluster(client=True)
@gen_cluster(client=True, timeout=10)
async def test_compute(c, s, a, b):
@dask.delayed
def f(n, counter):
Expand All @@ -485,10 +485,8 @@ def check(counter, blanks):
result = await c.compute(final, actors=counter)
assert result == 0 + 1 + 2 + 3 + 4

start = time()
while a.data or b.data:
await asyncio.sleep(0.01)
assert time() < start + 30


def test_compute_sync(client):
Expand Down

0 comments on commit c3539c2

Please sign in to comment.