Skip to content

Commit 1a7cfba

Browse files
test: Set the pool to 20 in test_helper.rb. (#109)
1 parent fa408d7 commit 1a7cfba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_helper.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
ActiveRecord::Base.configurations = {
1919
default_env: {
2020
url: ENV.fetch('DATABASE_URL', "sqlite3://#{Dir.tmpdir}/with_advisory_lock_test#{RUBY_VERSION}-#{ActiveRecord.gem_version}.sqlite3"),
21+
pool: 20,
2122
properties: { allowPublicKeyRetrieval: true } # for JRuby madness
2223
}
2324
}
@@ -62,4 +63,4 @@ def is_postgresql_adapter?; adapter_support.postgresql?; end
6263
end
6364

6465
puts "Testing with #{env_db} database, ActiveRecord #{ActiveRecord.gem_version} and #{RUBY_ENGINE} #{RUBY_ENGINE_VERSION} as #{RUBY_VERSION}"
65-
puts "Connection Pool size: #{ActiveRecord::Base.connection_pool.size}"
66+
puts "Connection Pool size: #{ActiveRecord::Base.connection_pool.size}"

0 commit comments

Comments
 (0)