Skip to content

Commit ace3775

Browse files
committed
use gen_cluster timeout
1 parent 1e9e077 commit ace3775

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

distributed/tests/test_actor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def f(block, ps=None):
466466

467467

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

488-
start = time()
489488
while a.data or b.data:
490489
await asyncio.sleep(0.01)
491-
assert time() < start + 30
492490

493491

494492
def test_compute_sync(client):

0 commit comments

Comments
 (0)