Skip to content

Commit 8b64123

Browse files
instead check the default threadpool size
1 parent e57bd11 commit 8b64123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/distributed_exec.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ function _getenv_include_thread_unsafe()
160160
end
161161
const _env_include_thread_unsafe = _getenv_include_thread_unsafe()
162162
function include_thread_unsafe_tests()
163-
if Threads.maxthreadid() > 1
163+
if Threads.threadpoolsize(:default) > 1
164164
if _env_include_thread_unsafe
165165
return true
166166
end
167-
msg = "Skipping a thread-unsafe test because `Threads.maxthreadid() > 1`"
168-
@warn msg Threads.maxthreadid()
167+
msg = "Skipping a thread-unsafe test because `Threads.threadpoolsize(:default) > 1`"
168+
@warn msg Threads.threadpoolsize(:default)
169169
Test.@test_broken false
170170
return false
171171
end

0 commit comments

Comments
 (0)