summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-14 18:51:54 +0000
committerEric Wong <normalperson@yhbt.net>2011-01-14 20:33:45 +0000
commitc7f4ade8edcfa7422d41c4272250b292b141b427 (patch)
treef7e408ff035acf4033b81efc103ef26ad2ce6e39 /t
parent18db44fe89b8ba61f21b92f6efece37baa8bd6c7 (diff)
normal signals can get lost easily :<
Diffstat (limited to 't')
-rw-r--r--t/t0050-response-body-close-has-env.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0050-response-body-close-has-env.sh b/t/t0050-response-body-close-has-env.sh
index 4d0cd6f..be16a99 100644
--- a/t/t0050-response-body-close-has-env.sh
+++ b/t/t0050-response-body-close-has-env.sh
@@ -33,6 +33,8 @@ req_pipelined () {
 
 reload () {
         t_begin 'reloading Rainbows! to ensure writeout' && {
+                # ensure worker is loaded before HUP
+                curl -s http://$listen/ >/dev/null
                 # reload to ensure everything is flushed
                 kill -HUP $rainbows_pid
                 test xSTART = x"$(cat $fifo)"
@@ -85,7 +87,6 @@ check_log pipe
 
 t_begin "enable sendfile gem" && {
         echo "require 'sendfile'" >> $unicorn_config
-        curl http://$listen/ >/dev/null # ensure worker is loaded before HUP
 }
 
 reload