diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-11 16:36:08 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-11 16:36:08 -0800 |
commit | 9caff8ecc7912306366cebb9c57b65ab12fde5ad (patch) | |
tree | acba78e50083e9806c19197ea004f76443f7914d /t/t0025-write-on-close.sh | |
parent | 89f948aeaef34114ec61291ff8ffbebcf85a748e (diff) | |
download | rainbows-9caff8ecc7912306366cebb9c57b65ab12fde5ad.tar.gz |
We need to ensure this esoteric feature keeps working for some people.
Diffstat (limited to 't/t0025-write-on-close.sh')
-rwxr-xr-x | t/t0025-write-on-close.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t0025-write-on-close.sh b/t/t0025-write-on-close.sh new file mode 100755 index 0000000..84fc2f3 --- /dev/null +++ b/t/t0025-write-on-close.sh @@ -0,0 +1,23 @@ +#!/bin/sh +. ./test-lib.sh +t_plan 4 "write-on-close tests for funky response-bodies" + +t_begin "setup and start" && { + rainbows_setup + rainbows -D -c $unicorn_config write-on-close.ru + rainbows_wait_start +} + +t_begin "write-on-close response body succeeds" && { + test xGoodbye = x"$(curl -sSf --http1.0 http://$listen/)" +} + +t_begin "killing succeeds" && { + kill $rainbows_pid +} + +t_begin "check stderr" && { + check_stderr +} + +t_done |