ShareLock#exclusive and sharing are both public methods

This commit is contained in:
Akira Matsuda 2020-10-02 15:46:11 +09:00
parent 339151204d
commit 14eb6b2794
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ class ShareLockTest < ActiveSupport::TestCase
section_release = Concurrent::CountDownLatch.new section_release = Concurrent::CountDownLatch.new
stuck_thread = Thread.new do stuck_thread = Thread.new do
@lock.send(lock_section) do @lock.public_send(lock_section) do
in_section.count_down in_section.count_down
section_release.wait section_release.wait
end end