aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-26 23:58:48 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-26 23:58:48 -0700
commitb4b3b14bd086051fc036af2e9aa4755e4c2931c7 (patch)
tree6469aa5e763da3e8b7602424cc1f9dc7aea45ce8 /activerecord
parentaceee198c96aa477427d84c08aef0fa1e42638e7 (diff)
downloadrails-b4b3b14bd086051fc036af2e9aa4755e4c2931c7.tar.gz
rails-b4b3b14bd086051fc036af2e9aa4755e4c2931c7.tar.bz2
rails-b4b3b14bd086051fc036af2e9aa4755e4c2931c7.zip
Only clean the connection of the current connection pool
This will avoid us to close the connection of the saved connection pool.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index 494663eb04..17b5304cc4 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/activerecord/test/cases/query_cache_test.rb
@@ -130,7 +130,7 @@ class QueryCacheTest < ActiveRecord::TestCase
assert_cache :off, conn
end
ensure
- ActiveRecord::Base.clear_all_connections!
+ ActiveRecord::Base.connection_pool.disconnect!
end
end
end