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