Skip to content

Commit bb7d600

Browse files
committed
formatting
1 parent a5bee0e commit bb7d600

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

spec/concurrent/executor/cached_thread_pool_spec.rb

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)