Skip to content

Commit 4fed1b8

Browse files
committed
tests: Fix scheduler meta test
1 parent 3d9bf69 commit 4fed1b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/scheduler.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ end
134134
@assert a isa Dagger.Chunk
135135
Dagger.tochunk(myid())
136136
end)(a)
137-
@test collect(b) in workers()
137+
if Threads.nthreads() == 1
138+
@test collect(b) in workers()
139+
else
140+
@test collect(b) in procs()
141+
end
138142
end
139143
@testset "single worker" begin
140144
options = ThunkOptions(;single=1)

0 commit comments

Comments
 (0)