We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c3227 commit 5146d8eCopy full SHA for 5146d8e
activerecord/test/cases/connection_pool_test.rb
@@ -307,14 +307,17 @@ def test_checkout_fairness_by_group
307
end
308
309
310
- def test_automatic_reconnect=
+ def test_automatic_reconnect_restores_after_disconnect
311
pool = ConnectionPool.new ActiveRecord::Base.connection_pool.spec
312
assert pool.automatic_reconnect
313
assert pool.connection
314
315
pool.disconnect!
316
317
+ end
318
319
+ def test_automatic_reconnect_can_be_disabled
320
+ pool = ConnectionPool.new ActiveRecord::Base.connection_pool.spec
321
322
pool.automatic_reconnect = false
323
0 commit comments