Namespace
Methods
- S
- T
Attributes
| [R] | pool |
Instance Public methods
setup()
Link
test_connection_pool_starts_reaper()
Link
# File activerecord/test/cases/reaper_test.rb, line 61 def test_connection_pool_starts_reaper spec = ActiveRecord::Base.connection_pool.spec.dup spec.config[:reaping_frequency] = '0.0001' pool = ConnectionPool.new spec conn = nil child = Thread.new do conn = pool.checkout Thread.stop end Thread.pass while conn.nil? assert conn.in_use? child.terminate while conn.in_use? Thread.pass end assert !conn.in_use? end
test_pool_has_reaper()
Link
test_reaping_frequency_configuration()
Link