Skip to content

Commit

Permalink
Remove TaskState instance check
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Aug 24, 2022
1 parent 840c74c commit 35db050
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions distributed/tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,12 @@ async def test_ready_remove_worker(s, a, b):

@gen_cluster(client=True, Worker=Nanny, timeout=60)
async def test_restart(c, s, a, b):
from distributed.scheduler import TaskState

before = TaskState._instances
futures = c.map(inc, range(20))
await wait(futures)

await s.restart()

assert TaskState._instances == before
assert not s.computations
assert not s.task_prefixes
assert not s.task_groups
Expand Down

0 comments on commit 35db050

Please sign in to comment.