support for Rack hijack in request and response
[unicorn.git] / t / t0022-listener_names-preload_app.sh
blobd07a26c2db8b6ded695374d0f0ebba601bf696e1
1 #!/bin/sh
2 . ./test-lib.sh
4 # Raindrops::Middleware depends on Unicorn.listener_names,
5 # ensure we don't break Raindrops::Middleware when preload_app is true
7 t_plan 4 "Unicorn.listener_names available with preload_app=true"
9 t_begin "setup and startup" && {
10 unicorn_setup
11 echo preload_app true >> $unicorn_config
12 unicorn -E none -D listener_names.ru -c $unicorn_config
13 unicorn_wait_start
16 t_begin "read listener names includes listener" && {
17 resp=$(curl -sSf http://$listen/)
18 ok=false
19 t_info "resp=$resp"
20 case $resp in
21 *\"$listen\"*) ok=true ;;
22 esac
23 $ok
26 t_begin "killing succeeds" && {
27 kill $unicorn_pid
30 t_begin "check stderr" && check_stderr
32 t_done