diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-26 23:58:48 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-26 23:58:48 -0700 |
commit | b4b3b14bd086051fc036af2e9aa4755e4c2931c7 (patch) | |
tree | 6469aa5e763da3e8b7602424cc1f9dc7aea45ce8 /activerecord | |
parent | aceee198c96aa477427d84c08aef0fa1e42638e7 (diff) | |
download | rails-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.rb | 2 |
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 |