Skip to content

Commit 5585210

Browse files
committed
Fix remaining tests
1 parent 5486efa commit 5585210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distributed/tests/test_scheduler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def random(**kwargs):
231231
)
232232
random_keys = set(flatten(x.__dask_keys__()))
233233

234-
xx, xsum = dask.persist(x, x.sum(axis=1, split_every=20))
234+
xx, xsum = c.persist([x, x.sum(axis=1, split_every=20)])
235235
await xsum
236236

237237
# Check that each chunk-row of the array is (mostly) stored on the same worker
@@ -2236,7 +2236,7 @@ async def test_dont_recompute_if_persisted_4(c, s, a, b):
22362236
while s.tasks["x"].state == "memory":
22372237
await asyncio.sleep(0.01)
22382238

2239-
yyy, zzz = dask.persist(y, z)
2239+
yyy, zzz = c.persist([y, z])
22402240
await wait([yyy, zzz])
22412241

22422242
new = s.story("x")

0 commit comments

Comments
 (0)