diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-21 18:35:44 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-21 18:35:45 -0300 |
commit | 03886d817307e091024ff3bd26844447abd8c408 (patch) | |
tree | e5d5b17492b5853315878be3d4a9ad3ad344b63e /activerecord/test | |
parent | d5d9a281aaf9bc0fd7f5e92e1609a7677f25887c (diff) | |
download | rails-03886d817307e091024ff3bd26844447abd8c408.tar.gz rails-03886d817307e091024ff3bd26844447abd8c408.tar.bz2 rails-03886d817307e091024ff3bd26844447abd8c408.zip |
Remove not used variables from connection poll test
These variables were issuing some "not used" warnings.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/connection_pool_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb index 6871e628aa..b1905515d3 100644 --- a/activerecord/test/cases/connection_pool_test.rb +++ b/activerecord/test/cases/connection_pool_test.rb @@ -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 } |