1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove not used variables from connection poll test

These variables were issuing some "not used" warnings.
This commit is contained in:
Carlos Antonio da Silva 2012-05-21 18:35:44 -03:00
parent d5d9a281aa
commit 03886d8173

View file

@ -230,7 +230,7 @@ module ActiveRecord
threads = expected.map do |i|
t = Thread.new {
begin
conn = @pool.checkout # never checked back in
@pool.checkout # never checked back in
mutex.synchronize { order << i }
rescue => e
mutex.synchronize { errors << e }
@ -273,7 +273,7 @@ module ActiveRecord
make_thread = proc do |i|
t = Thread.new {
begin
conn = @pool.checkout # never checked back in
@pool.checkout # never checked back in
mutex.synchronize { successes << i }
rescue => e
mutex.synchronize { errors << e }