From 14eb6b2794738fd0d5425b59577fd95eb72f3748 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Oct 2020 15:46:11 +0900 Subject: [PATCH] ShareLock#exclusive and sharing are both public methods --- activesupport/test/share_lock_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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