3 t_plan
8 "simple HTTP connection tests"
5 t_begin
"setup and start" && {
7 unicorn
-D -c $unicorn_config env.ru
11 t_begin
"single request" && {
12 curl
-sSfv http
://$listen/
15 t_begin
"check stderr has no errors" && {
19 t_begin
"HTTP/0.9 request should not return headers" && {
25 ) | socat
- TCP
:$listen > $fifo
28 t_begin
"env.inspect should've put everything on one line" && {
29 test 1 -eq $
(wc -l < $tmp)
32 t_begin
"no headers in output" && {
33 if grep ^Connection
: $tmp
35 die
"Connection header found in $tmp"
38 die
"HTTP/ found in $tmp"
42 t_begin
"killing succeeds" && {
46 t_begin
"check stderr has no errors" && {