about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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