diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-08 16:21:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-08 16:21:47 -0700 |
commit | b0c0e9f38b96c387d588d9f91fdeffd5464dd20a (patch) | |
tree | c5b5154b898a22b01d7e31480b2c23e4b5ef058c | |
parent | e5f0c0c548fd68a35902d4106130f099427aa98b (diff) | |
download | rails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.tar.gz rails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.tar.bz2 rails-b0c0e9f38b96c387d588d9f91fdeffd5464dd20a.zip |
if we remove the connection from the pool, we should close it
-rw-r--r-- | activerecord/test/cases/connection_pool_test.rb | 1 |
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 |