mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 03:37:28 +02:00
Determine CPU count for parallelizing tests
This commit is contained in:
parent
fbaf439dc2
commit
96b5eb881a
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ EInvoice.provider = EInvoice::Providers::TestProvider.new
|
|||
|
||||
class ActiveSupport::TestCase
|
||||
# Run tests in parallel with specified workers
|
||||
parallelize(workers: :number_of_processors)
|
||||
cpu_count = ENV['PARALLEL_WORKERS'] || Concurrent.physical_processor_count || 1
|
||||
parallelize(workers: cpu_count)
|
||||
|
||||
ActiveRecord::Migration.check_pending!
|
||||
fixtures :all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue