aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-07-08 16:21:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-07-08 16:21:47 -0700
commitb0c0e9f38b96c387d588d9f91fdeffd5464dd20a (patch)
treec5b5154b898a22b01d7e31480b2c23e4b5ef058c /activerecord
parente5f0c0c548fd68a35902d4106130f099427aa98b (diff)
downloadrails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.tar.gz
rails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.tar.bz2
rails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.zip
if we remove the connection from the pool, we should close it
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/connection_pool_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb
index d5365b695e..2da51ea015 100644
--- a/activerecord/test/cases/connection_pool_test.rb
+++ b/activerecord/test/cases/connection_pool_test.rb
@@ -118,6 +118,7 @@ module ActiveRecord
connection = cs.first
@pool.remove connection
assert_respond_to t.join.value, :execute
+ connection.close
end
def test_reap_and_active