Skip to content

Commit

Permalink
Increase resilience on slow CI
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Jan 21, 2022
1 parent 581aee8 commit aef3b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/tests/test_worker.py
Expand Up @@ -1663,9 +1663,9 @@ async def test_close_gracefully(c, s, a, b):
@pytest.mark.slow
@gen_cluster(client=True, nthreads=[])
async def test_lifetime(c, s):
async with Worker(s.address) as a, Worker(s.address, lifetime="1 seconds") as b:
async with Worker(s.address) as a, Worker(s.address, lifetime="2 seconds") as b:
futures = c.map(slowinc, range(200), delay=0.1, workers=[b.address])
await asyncio.sleep(0.5)
await asyncio.sleep(1)
assert not a.data
assert b.data
b_keys = set(b.data)
Expand Down

0 comments on commit aef3b71

Please sign in to comment.