Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove dead code

  • Loading branch information...
commit 2e0b0c1dab7eeafb58d29ac6e71071118c91365f 1 parent b0c0e9f
@tenderlove tenderlove authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 activerecord/test/cases/pooled_connections_test.rb
View
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}))
Please sign in to comment.
Something went wrong with that request. Please try again.