summary refs log tree commit homepage
path: root/t/t0200-rack-hijack.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0200-rack-hijack.sh')
-rwxr-xr-xt/t0200-rack-hijack.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/t0200-rack-hijack.sh b/t/t0200-rack-hijack.sh
index f772071..de3eb82 100755
--- a/t/t0200-rack-hijack.sh
+++ b/t/t0200-rack-hijack.sh
@@ -16,12 +16,15 @@ t_begin "check response hijack" && {
         test "xresponse.hijacked" = x"$(curl -sSfv http://$listen/hijack_res)"
 }
 
-t_begin "killing succeeds" && {
+t_begin "killing succeeds after hijack" && {
         kill $unicorn_pid
 }
 
-t_begin "check stderr" && {
+t_begin "check stderr for hijacked body close" && {
         check_stderr
+        grep 'closed DieIfUsed 1\>' $r_err
+        grep 'closed DieIfUsed 2\>' $r_err
+        ! grep 'closed DieIfUsed 3\>' $r_err
 }
 
 t_done