Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed May 19, 2022
1 parent dd465f6 commit 3e9134b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distributed/tests/test_cancelled_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ async def get_data(self, comm, *args, **kwargs):

f1 = c.submit(inc, 1, key="f1", workers=[w1.address])
f2 = c.submit(inc, 2, key="f2", workers=[w1.address])
f3 = c.submit(sum, [f1, f2], workers=[w1.address])
f3 = c.submit(sum, [f1, f2], key="f3", workers=[w1.address])

await wait(f3)
f4 = c.submit(inc, f3, key="f4", workers=[w2.address])
Expand All @@ -441,8 +441,7 @@ async def get_data(self, comm, *args, **kwargs):
)
await s.remove_worker(w1.address, "stim-id")

while w2.tasks[f3.key].state != "resumed":
await asyncio.sleep(0.1)
await wait_for_state(f3.key, "resumed", w2)
assert_story(
w2.log,
[
Expand Down

0 comments on commit 3e9134b

Please sign in to comment.