Skip to content

Commit f2de94a

Browse files
committed
Allow the child process to be already gone
1 parent 9cfbd78 commit f2de94a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/concurrent/executor/cached_thread_pool_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ module Concurrent
212212
pid = spawn RbConfig.ruby, test_file
213213
Process.waitpid pid
214214
expect($?.success?).to eq true
215+
rescue Errno::ECHILD
216+
# child already gone
215217
rescue Timeout::Error => e
216218
Process.kill :KILL, pid
217219
raise e

0 commit comments

Comments
 (0)