From dda41d690a6af04a1a2591b0513f25914bba99d4 Mon Sep 17 00:00:00 2001 From: sorenstoutner Date: Sat, 15 Mar 2025 15:57:34 -0700 Subject: [PATCH] Set the pool to 20 in test_helper.rb. --- test/test_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 189bd4a..3ee07f3 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -18,6 +18,7 @@ ActiveRecord::Base.configurations = { default_env: { url: ENV.fetch('DATABASE_URL', "sqlite3://#{Dir.tmpdir}/with_advisory_lock_test#{RUBY_VERSION}-#{ActiveRecord.gem_version}.sqlite3"), + pool: 20, properties: { allowPublicKeyRetrieval: true } # for JRuby madness } } @@ -62,4 +63,4 @@ def is_postgresql_adapter?; adapter_support.postgresql?; end end puts "Testing with #{env_db} database, ActiveRecord #{ActiveRecord.gem_version} and #{RUBY_ENGINE} #{RUBY_ENGINE_VERSION} as #{RUBY_VERSION}" -puts "Connection Pool size: #{ActiveRecord::Base.connection_pool.size}" \ No newline at end of file +puts "Connection Pool size: #{ActiveRecord::Base.connection_pool.size}"