Skip to content

Commit 2dd0c65

Browse files
committed
fix tests
1 parent 82b1301 commit 2dd0c65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/concurrent/executor/ruby_cached_thread_pool_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module Concurrent
3232
max_threads = subject.length
3333
sleep(2)
3434

35-
latch = Concurrent::CountDownLatch.new(1)
35+
latch = Concurrent::CountDownLatch.new(2)
36+
subject << proc{ latch.count_down }
3637
subject << proc{ latch.count_down }
3738
expect(latch.wait(1)).to be true
3839

0 commit comments

Comments
 (0)