Skip to content

Commit

Permalink
Don't rely on timing
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Aug 4, 2023
1 parent c9ef7c8 commit 567bbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3678,7 +3678,7 @@ async def test_gather_on_worker_bad_recipient(c, s, a, b):
"""The recipient is missing"""
x = await c.scatter("x")
await b.close()
assert s.workers.keys() == {a.address}
await async_poll_for(lambda: s.workers.keys() == {a.address}, timeout=5)
out = await s.gather_on_worker(b.address, {x.key: [a.address]})
assert out == {x.key}

Expand Down

0 comments on commit 567bbcd

Please sign in to comment.