diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-08 16:30:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-08 16:30:10 -0700 |
commit | 2e0b0c1dab7eeafb58d29ac6e71071118c91365f (patch) | |
tree | 19e176fe1f273333db66417cb1814f00083d2da9 | |
parent | b0c0e9f38b96c387d588d9f91fdeffd5464dd20a (diff) | |
download | rails-2e0b0c1dab7eeafb58d29ac6e71071118c91365f.tar.gz rails-2e0b0c1dab7eeafb58d29ac6e71071118c91365f.tar.bz2 rails-2e0b0c1dab7eeafb58d29ac6e71071118c91365f.zip |
remove dead code
-rw-r--r-- | activerecord/test/cases/pooled_connections_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/cases/pooled_connections_test.rb b/activerecord/test/cases/pooled_connections_test.rb index a8a9b06ec4..626c6aeaf8 100644 --- a/activerecord/test/cases/pooled_connections_test.rb +++ b/activerecord/test/cases/pooled_connections_test.rb @@ -16,22 +16,6 @@ class PooledConnectionsTest < ActiveRecord::TestCase @per_test_teardown.each {|td| td.call } end - def checkout_connections - ActiveRecord::Base.establish_connection(@connection.merge({:pool => 2, :checkout_timeout => 0.3})) - @connections = [] - @timed_out = 0 - - 4.times do - Thread.new do - begin - @connections << ActiveRecord::Base.connection_pool.checkout - rescue ActiveRecord::ConnectionTimeoutError - @timed_out += 1 - end - end.join - end - end - # Will deadlock due to lack of Monitor timeouts in 1.9 def checkout_checkin_connections(pool_size, threads) ActiveRecord::Base.establish_connection(@connection.merge({:pool => pool_size, :checkout_timeout => 0.5})) |