Skip to content

Commit

Permalink
update unsupported proxy method in test
Browse files Browse the repository at this point in the history
  • Loading branch information
matsubara0507 committed May 17, 2024
1 parent bf5f330 commit 9edbf96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/active_record/turntable/pool_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
context "When initialized" do
subject { ActiveRecord::Turntable::PoolProxy.new(nil) }

UNSUPPORTED_PROXY_METHODS = %i[checkout checkin stat lock_thread= remove num_waiting_in_queue].freeze
# TODO: should support AR 6.1 methods (connection_klass discarded? pool_config db_config)
UNSUPPORTED_PROXY_METHODS = %i[checkout checkin stat lock_thread= remove num_waiting_in_queue connection_klass discarded? pool_config db_config].freeze

context "Comparing original connection pool" do
(ActiveRecord::ConnectionAdapters::ConnectionPool.instance_methods(false) - UNSUPPORTED_PROXY_METHODS).each do |original_method|
Expand Down

0 comments on commit 9edbf96

Please sign in to comment.