Use PROCESS_COUNT to define the number of parallel executors

上级 0b773c30
......@@ -495,5 +495,5 @@ def shutdown
if ActiveSupport::Testing::Isolation.forking_env? && PROCESS_COUNT > 0
# Use N processes (N defaults to 4)
Minitest.parallel_executor = ForkingExecutor.new((ENV['N'] || 4).to_i)
Minitest.parallel_executor = ForkingExecutor.new(PROCESS_COUNT)
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册