Permalink
Browse files

Remove not used variables from connection poll test

These variables were issuing some "not used" warnings.
  • Loading branch information...
1 parent d5d9a28 commit 03886d817307e091024ff3bd26844447abd8c408 @carlosantoniodasilva carlosantoniodasilva committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/connection_pool_test.rb
View
4 activerecord/test/cases/connection_pool_test.rb
@@ -230,7 +230,7 @@ def do_checkout_fairness
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 @@ def do_checkout_fairness_by_group
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 }

0 comments on commit 03886d8

Please sign in to comment.