diff --git a/test/test_helper.rb b/test/test_helper.rb index 9e3986d2..e73b878b 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -82,6 +82,7 @@ def signal_process(pid, signal, wait: nil, raise_on_missing: true) Thread.new do sleep(wait) if wait Process.kill(signal, pid) + sleep(wait) if wait rescue Errno::ESRCH raise if raise_on_missing end