about summary refs log tree commit homepage
path: root/t/t0107-rack-input-limit-zero.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0107-rack-input-limit-zero.sh')
-rwxr-xr-xt/t0107-rack-input-limit-zero.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/t0107-rack-input-limit-zero.sh b/t/t0107-rack-input-limit-zero.sh
index eb947ba..94aa256 100755
--- a/t/t0107-rack-input-limit-zero.sh
+++ b/t/t0107-rack-input-limit-zero.sh
@@ -5,11 +5,13 @@ req_curl_chunked_upload_err_check
 t_plan 6 "rack.input client_max_body_size zero"
 
 t_begin "setup and startup" && {
-        rtmpfiles curl_out curl_err cmbs_config
+        rtmpfiles curl_out curl_err
         rainbows_setup $model
-        sed -e 's/client_max_body_size.*/client_max_body_size 0/' \
-          < $unicorn_config > $cmbs_config
-        rainbows -D sha1-random-size.ru -c $cmbs_config
+        ed -s $unicorn_config <<EOF
+,s/client_max_body_size.*/client_max_body_size 0/
+w
+EOF
+        rainbows -D sha1-random-size.ru -c $unicorn_config
         rainbows_wait_start
         empty_sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709
 }