We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94f03b commit 0cead11Copy full SHA for 0cead11
spec/concurrent/executor/ruby_cached_thread_pool_spec.rb
@@ -92,12 +92,13 @@ module Concurrent
92
specify do
93
pool = RubyThreadPoolExecutor.new(config)
94
95
- 100.times do
+ 10.times do
96
count = Concurrent::CountDownLatch.new(100)
97
100.times do
98
pool.post { count.count_down }
99
end
100
count.wait
101
+ sleep 0.01 # let the tasks end after count_down
102
expect(pool.length).to be <= [200, config[:max_threads]].min
103
if pool.length > [110, config[:max_threads]].min
104
puts "ERRORSIZE #{pool.length} max #{config[:max_threads]}"
0 commit comments