Skip to content

Commit e5eb9fc

Browse files
p-schlickmannrosa
authored andcommitted
supressing sqlite fork warnings for dummy app (used by test suite)
1 parent 0e633ff commit e5eb9fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/dummy/config/initializers/sqlite3.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ def configure_connection
2727
ActiveRecord::ConnectionAdapters::SQLite3Adapter.prepend SqliteImmediateTransactions
2828
ActiveRecord::ConnectionAdapters::SQLite3Adapter.prepend SQLite3Configuration
2929
end
30+
31+
# Suppress fork safety warnings in the dummy app (used by test suite)
32+
# Warnings are safe: https://github.com/rails/solid_queue/issues/506
33+
SQLite3::ForkSafety.suppress_warnings! if defined?(SQLite3::ForkSafety)
3034
end

0 commit comments

Comments
 (0)