Skip to content

Commit

Permalink
Check in-flight task count in steal test
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth committed Mar 4, 2021
1 parent 94d184a commit 47ada8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distributed/tests/test_steal.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,9 @@ async def test_steal_twice(c, s, a, b):
)
assert max(map(len, has_what.values())) < 30

assert a.in_flight_tasks == 0
assert b.in_flight_tasks == 0

await c._close()
await asyncio.gather(*[w.close() for w in workers])

Expand Down

0 comments on commit 47ada8e

Please sign in to comment.