1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

@ -495,5 +495,5 @@ end
if ActiveSupport::Testing::Isolation.forking_env? && PROCESS_COUNT > 0 if ActiveSupport::Testing::Isolation.forking_env? && PROCESS_COUNT > 0
# Use N processes (N defaults to 4) # 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 end