Skip to content

Commit a5ff9d2

Browse files
committed
Fixed test.
1 parent 4e8e03f commit a5ff9d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/concurrent/executor/thread_pool_executor_shared.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@
485485
trigger = Concurrent::Event.new
486486
initial = Thread.list.length
487487

488+
executor = described_class.new(
489+
min_threads: 1,
490+
max_threads: 1,
491+
idletime: idletime,
492+
max_queue: 1,
493+
fallback_policy: :caller_runs
494+
)
495+
488496
# Post several tasks to the executor. Has to be a new thread,
489497
# because it will start blocking once the queue fills up.
490498
Thread.new do

0 commit comments

Comments
 (0)