This commit is contained in:
aakashb95
2026-01-12 13:59:27 +05:30
parent 2299bee182
commit 7cf971963f
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -85,9 +85,9 @@ RSpec.describe Account, type: :model do
ready = Concurrent::CountDownLatch.new(concurrent_calls)
start = Concurrent::CountDownLatch.new(1)
threads = concurrent_calls.times.map do
threads = Array.new(concurrent_calls) do
Thread.new do
thread_count = Account.find(account.id)
thread_count = described_class.find(account.id)
ready.count_down
start.wait