diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d1d02a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +Manifest.toml diff --git a/test/distributed_exec.jl b/test/distributed_exec.jl index d80d642..b730df1 100644 --- a/test/distributed_exec.jl +++ b/test/distributed_exec.jl @@ -160,12 +160,12 @@ function _getenv_include_thread_unsafe() end const _env_include_thread_unsafe = _getenv_include_thread_unsafe() function include_thread_unsafe_tests() - if Threads.maxthreadid() > 1 + if Threads.threadpoolsize(:default) > 1 if _env_include_thread_unsafe return true end - msg = "Skipping a thread-unsafe test because `Threads.maxthreadid() > 1`" - @warn msg Threads.maxthreadid() + msg = "Skipping a thread-unsafe test because `Threads.threadpoolsize(:default) > 1`" + @warn msg Threads.threadpoolsize(:default) Test.@test_broken false return false end