Skip to content

Commit

Permalink
Xfail test_worker_death_timeout
Browse files Browse the repository at this point in the history
This is due to the asyncio.wait_for bug in CPython.
It sometimes doesn't respect its own timeout
  • Loading branch information
mrocklin committed Apr 24, 2022
1 parent 5b6a64a commit 016a5ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,9 +810,8 @@ async def test_hold_onto_dependents(c, s, a, b):
await asyncio.sleep(0.1)


# Normally takes >2s but it has been observed to take >30s occasionally
@pytest.mark.slow
@gen_test(timeout=120)
@pytest.mark.xfail(reason="asyncio.wait_for bug")
@gen_test()
async def test_worker_death_timeout():
w = Worker("tcp://127.0.0.1:12345", death_timeout=0.1)
with pytest.raises(TimeoutError) as info:
Expand Down

0 comments on commit 016a5ef

Please sign in to comment.