4 t_plan
4 "graceful exit test for $model"
6 t_begin
"setup and startup" && {
9 rainbows
-D sleep.ru
-c $unicorn_config
13 t_begin
"send a request and SIGQUIT while request is processing" && {
14 curl
-sSfv -T- </dev
/null http
://$listen/5 > $curl_out 2> $fifo &
15 awk -v rainbows_pid
=$rainbows_pid '
18 print "awk: sending SIGQUIT to", rainbows_pid
19 system("kill -QUIT "rainbows_pid)
26 t_begin
'response returned "Hello"' && {
27 test x$
(cat $curl_out) = xHello
30 t_begin
'stderr has no errors' && check_stderr