From c93b38c0b13b5168304414e8388f825ac80d5d5b Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Oct 2020 22:12:07 +0900 Subject: [PATCH] ConnectionPool#disconnect and clear_reloadable_connections are public methods --- activerecord/test/cases/connection_pool_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb index 1904f2a409..6797651a0f 100644 --- a/activerecord/test/cases/connection_pool_test.rb +++ b/activerecord/test/cases/connection_pool_test.rb @@ -563,7 +563,7 @@ module ActiveRecord [:disconnect, :clear_reloadable_connections].each do |group_action_method| @pool.with_connection do |connection| assert_raises(ExclusiveConnectionTimeoutError) do - Thread.new { @pool.send(group_action_method) }.join + Thread.new { @pool.public_send(group_action_method) }.join end end end