3 t_plan
7 "reload config.ru error with preload_app true"
5 t_begin
"setup and start" && {
10 use Rack
::ContentLength
11 use Rack
::ContentType
, "text/plain"
12 x
= { "hello" => "world" }
13 run lambda
{ |env|
[ 200, {}, [ x.inspect
<< "\n" ] ] }
15 echo 'preload_app true' >> $unicorn_config
16 rainbows
-D -c $unicorn_config $ru
20 t_begin
"hit with curl" && {
21 out
=$
(curl
-sSf http
://$listen/)
22 test x
"$out" = x
'{"hello"=>"world"}'
25 t_begin
"introduce syntax error in rackup file" && {
29 t_begin
"reload signal succeeds" && {
30 kill -HUP $rainbows_pid
32 wait_for_reload
$r_err error
37 t_begin
"hit with curl" && {
38 out
=$
(curl
-sSf http
://$listen/)
39 test x
"$out" = x
'{"hello"=>"world"}'
42 t_begin
"killing succeeds" && {
46 t_begin
"check stderr" && {