From c7f4ade8edcfa7422d41c4272250b292b141b427 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Jan 2011 18:51:54 +0000 Subject: t0050: improve test reliability normal signals can get lost easily :< --- t/t0050-response-body-close-has-env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't') 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 -- cgit v1.2.3-24-ge0c7