Skip to content

Commit 81155c9

Browse files
committed
tests: Ensure that init_eager throws on worker != 1
1 parent 1d30111 commit 81155c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/thunk.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ end
4949
end
5050

5151
@testset "@spawn" begin
52+
@test_throws_unwrap ConcurrencyViolationError remotecall_fetch(last(workers())) do
53+
Dagger.Sch.init_eager()
54+
end
5255
@test Dagger.Sch.EAGER_CONTEXT[] === nothing
5356
@testset "per-call" begin
5457
x = 2

0 commit comments

Comments
 (0)