From 1ec10bd98608981087283b8f63597777d97f40c7 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 11 Oct 2023 14:38:01 +0200 Subject: [PATCH] Sleep both before and after --- test/test_helper.rb | 1 + 1 file changed, 1 insertion(+) 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