about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-21 12:50:02 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-21 22:40:31 -0800
commit7044e57b53c4a517e19f44d204d9c0a676fc5e9d (patch)
tree8b1337b3776643733f83eaf346264f0f7ae33358 /test
parent15c61925a1825d2474f10fb3698353de75c8437e (diff)
downloadunicorn-7044e57b53c4a517e19f44d204d9c0a676fc5e9d.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/exec/test_exec.rb4
1 files changed, 2 insertions, 2 deletions
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?