Permalink
Browse files

remove dead code

  • Loading branch information...
tenderlove committed Jul 8, 2013
1 parent b0c0e9f commit 2e0b0c1dab7eeafb58d29ac6e71071118c91365f
Showing with 0 additions and 16 deletions.
  1. +0 −16 activerecord/test/cases/pooled_connections_test.rb
@@ -16,22 +16,6 @@ def teardown
@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}))

0 comments on commit 2e0b0c1

Please sign in to comment.