Skip to content

Commit 46bd163

Browse files
committed
Fix slow ActiveRecord::QueryCache test
1 parent 90bdbe0 commit 46bd163

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

activerecord/test/cases/query_cache_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ def test_query_caching_is_local_to_the_current_thread
584584
Thread.new {
585585
assert_not ActiveRecord::Base.connection_pool.query_cache_enabled
586586
assert_not ActiveRecord::Base.connection.query_cache_enabled
587+
588+
ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
587589
}.join
588590
}.call({})
589591
end

0 commit comments

Comments
 (0)