Skip to content

Commit d504e59

Browse files
committed
SQLite3::ForkSafety.suppress_warnings!
Similar to this, which seems to not have been released for 7.2.x but has landed in main. https://github.com/rails/rails/pull/53033/files#diff-13f18e985e903996e81f573b1fd364c19bddde279bc2797181491e6c146bcdc7R18
1 parent 60b7436 commit d504e59

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/test_helper.rb

+3-7
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ class IntegrationTest
5454

5555
module ActiveSupport
5656
class TestCase
57+
SQLite3::ForkSafety.suppress_warnings!
58+
5759
# Run tests in parallel with specified workers
58-
# parallelize(workers: :number_of_processors)
59-
# Setting to 1 manually to avoid sqlite fork warnings. Locally this seems to marginally
60-
# increase total test time, but not enough that it seemed like a bad idea at this time.
61-
# If our tests get slow, we can renable parallel tests and instead supress (or actually fix
62-
# but it's unclear exactly how) the sqlite error.
63-
# SQLite3::ForkSafety.suppress_warnings!
64-
parallelize(workers: 1)
60+
parallelize(workers: :number_of_processors)
6561

6662
parallelize_setup do |worker|
6763
SimpleCov.command_name "#{SimpleCov.command_name}-#{worker}"

0 commit comments

Comments
 (0)