Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Sep 2, 2024
1 parent 54db439 commit a325253
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions distributed/tests/test_nanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,7 @@ async def test_worker_start_exception_while_killing(s):
nanny = Nanny(s.address, worker_class=BrokenWorker)

async def try_to_kill_nanny():
while not nanny.process or nanny.process.status not in (
Status.starting, # this is what we want
# Status.failed # we might've missed it already
):
while not nanny.process or nanny.process.status != Status.starting:
await asyncio.sleep(0)
await nanny.kill()

Expand Down

0 comments on commit a325253

Please sign in to comment.