Skip to content

Commit 8a5ff41

Browse files
committed
Fixed brittle RubyThreadPoolExecutor spec.
1 parent 09fa943 commit 8a5ff41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/concurrent/executor/ruby_thread_pool_executor_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,20 @@ module Concurrent
119119

120120
specify 'a #post task is never executed when the queue is at capacity' do
121121
executed = Concurrent::AtomicFixnum.new(0)
122-
100.times do
122+
1000.times do
123123
subject.post{ executed.increment }
124124
end
125125
sleep(0.1)
126-
executed.value.should < 100
126+
executed.value.should < 1000
127127
end
128128

129129
specify 'a #<< task is never executed when the queue is at capacity' do
130130
executed = Concurrent::AtomicFixnum.new(0)
131-
100.times do
131+
1000.times do
132132
subject << proc { executed.increment }
133133
end
134134
sleep(0.1)
135-
executed.value.should < 100
135+
executed.value.should < 1000
136136
end
137137
end
138138

0 commit comments

Comments
 (0)