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:
parent
0b773c30fb
commit
decb83b9fd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue