Use PROCESS_COUNT to define the number of parallel executors

This commit is contained in:
Rafael Mendonça França 2014-07-23 14:40:43 -03:00
parent 0b773c30fb
commit decb83b9fd
1 changed files with 1 additions and 1 deletions

View File

@ -495,5 +495,5 @@ end
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