From 7044e57b53c4a517e19f44d204d9c0a676fc5e9d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 Nov 2009 12:50:02 -0800 Subject: test_exec: sleep a little longer to avoid race :< On heavily loaded machines, this test can take a while, fortunately our test suite is parallelization-friendly. --- test/exec/test_exec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 49762c0..fc0719b 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -910,11 +910,11 @@ EOF bodies[pid] += 1 } } - sleep 1 # racy + sleep 5 # racy daemon_pid = File.read(pid_file.path).to_i assert daemon_pid > 0 Process.kill(:HUP, daemon_pid) - sleep 1 # racy + sleep 5 # racy assert_nothing_raised { Process.kill(:TERM, hitter) } _, hitter_status = Process.waitpid2(hitter) assert hitter_status.success? -- cgit v1.2.3-24-ge0c7