Rails seeded parallel tests (#2037)
Enable work stealing by default for a tiny speedup at the cost of small loss in reproducibility. References https://github.com/rails/rails/pull/56175
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ end
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase
|
||||
parallelize(workers: :number_of_processors)
|
||||
parallelize workers: :number_of_processors, work_stealing: ENV["WORK_STEALING"] != "false"
|
||||
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
fixtures :all
|
||||
|
||||
Reference in New Issue
Block a user