Skip to content

Commit fdfbe0f

Browse files
committed
tests: don't use single-argument map
Single-argument `map` is being removed from Julia after an analysis of registered packages found that the change doesn't break the functionality of any package. See JuliaLang/julia#35293 and JuliaLang/julia#52631 That said, the Julia change breaks your test suite, so here's a PR that fixes that.
1 parent 86181d5 commit fdfbe0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/run.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ end
7373
f₂() = read("file", String)
7474
h = Job(Thunk(sleep, 3); username="me", name="h")
7575
i = Job(Thunk(f₁, 1001); username="me", name="i")
76-
j = ConditionalJob(Thunk(map, f₂); username="he", name="j")
76+
caller = f -> f()
77+
j = ConditionalJob(Thunk(caller, f₂); username="he", name="j")
7778
[h, i] .→ Ref(j)
7879
wf = Workflow(j)
7980
@test unique(wf) == collect(wf)

0 commit comments

Comments
 (0)