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}"