about summary refs log tree commit homepage
path: root/t/lib-large-file-response.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/lib-large-file-response.sh')
-rw-r--r--t/lib-large-file-response.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/t/lib-large-file-response.sh b/t/lib-large-file-response.sh
index 9866982..4e387e0 100644
--- a/t/lib-large-file-response.sh
+++ b/t/lib-large-file-response.sh
@@ -6,20 +6,11 @@ then
         exit 0
 fi
 echo "large file response slurp avoidance for model=$model"
-eval $(unused_listen)
-rtmpfiles unicorn_config tmp r_err r_out pid ok fifo
-
-cat > $unicorn_config <<EOF
-listen "$listen"
-stderr_path "$r_err"
-stdout_path "$r_out"
-pid "$pid"
-Rainbows! { use :$model }
-EOF
 
+rainbows_setup
 # can't load Rack::Lint here since it'll cause Rev to slurp
 rainbows -E none -D large-file-response.ru -c $unicorn_config
-wait_for_pid $pid
+rainbows_wait_start
 
 random_blob_size=$(wc -c < random_blob)
 curl -v http://$listen/rss