3 t_plan
5 "rack.hijack tests (Rack 1.5+ (Rack::VERSION >= [ 1,2]))"
5 t_begin
"setup and start" && {
7 unicorn
-D -c $unicorn_config hijack.ru
11 t_begin
"check request hijack" && {
12 test "xrequest.hijacked" = x
"$(curl -sSfv http://$listen/hijack_req)"
15 t_begin
"check response hijack" && {
16 test "xresponse.hijacked" = x
"$(curl -sSfv http://$listen/hijack_res)"
19 t_begin
"killing succeeds after hijack" && {
23 t_begin
"check stderr for hijacked body close" && {
25 grep 'closed DieIfUsed 1\>' $r_err
26 grep 'closed DieIfUsed 2\>' $r_err
27 ! grep 'closed DieIfUsed 3\>' $r_err