diff --git a/activesupport/test/share_lock_test.rb b/activesupport/test/share_lock_test.rb index c50c0b1b339..2bf2435246a 100644 --- a/activesupport/test/share_lock_test.rb +++ b/activesupport/test/share_lock_test.rb @@ -560,7 +560,7 @@ class ShareLockTest < ActiveSupport::TestCase section_release = Concurrent::CountDownLatch.new stuck_thread = Thread.new do - @lock.send(lock_section) do + @lock.public_send(lock_section) do in_section.count_down section_release.wait end