1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ConnectionPool#disconnect and clear_reloadable_connections are public methods

This commit is contained in:
Akira Matsuda 2020-10-02 22:12:07 +09:00
parent 7acee4d7c0
commit c93b38c0b1

View file

@ -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