File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -203,20 +203,20 @@ module Concurrent
203203
204204 context 'stress' , notravis : true do
205205 configurations = [
206- { min_threads : 2 ,
207- max_threads : ThreadPoolExecutor ::DEFAULT_MAX_POOL_SIZE ,
208- auto_terminate : false ,
209- idletime : 0.1 , # 1 minute
210- max_queue : 0 , # unlimited
211- fallback_policy : :caller_runs , # shouldn't matter -- 0 max queue
212- gc_interval : 0.1 } ,
213- { min_threads : 2 ,
214- max_threads : 4 ,
215- auto_terminate : false ,
216- idletime : 0.1 , # 1 minute
217- max_queue : 0 , # unlimited
206+ { min_threads : 2 ,
207+ max_threads : ThreadPoolExecutor ::DEFAULT_MAX_POOL_SIZE ,
208+ auto_terminate : false ,
209+ idletime : 0.1 , # 1 minute
210+ max_queue : 0 , # unlimited
218211 fallback_policy : :caller_runs , # shouldn't matter -- 0 max queue
219- gc_interval : 0.1 }
212+ gc_interval : 0.1 } ,
213+ { min_threads : 2 ,
214+ max_threads : 4 ,
215+ auto_terminate : false ,
216+ idletime : 0.1 , # 1 minute
217+ max_queue : 0 , # unlimited
218+ fallback_policy : :caller_runs , # shouldn't matter -- 0 max queue
219+ gc_interval : 0.1 }
220220 ]
221221
222222 configurations . each do |config |
@@ -235,6 +235,8 @@ module Concurrent
235235 puts "ERRORSIZE #{ pool . length } max #{ config [ :max_threads ] } "
236236 end
237237 end
238+
239+ pool . shutdown
238240 end
239241 end
240242 end
You can’t perform that action at this time.
0 commit comments