Add rack.after_reply functionality
[unicorn.git] / t / t0018-write-on-close.sh
blob3afefea9588eac6e91ff8e4fbdaf7d8ae7acb863
1 #!/bin/sh
2 . ./test-lib.sh
3 t_plan 4 "write-on-close tests for funky response-bodies"
5 t_begin "setup and start" && {
6 unicorn_setup
7 unicorn -D -c $unicorn_config write-on-close.ru
8 unicorn_wait_start
11 t_begin "write-on-close response body succeeds" && {
12 test xGoodbye = x"$(curl -sSf http://$listen/)"
15 t_begin "killing succeeds" && {
16 kill $unicorn_pid
19 t_begin "check stderr" && {
20 check_stderr
23 t_done