about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xt/t0105-rack-input-limit-bigger.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/t0105-rack-input-limit-bigger.sh b/t/t0105-rack-input-limit-bigger.sh
index 95cadca..e8cf95a 100755
--- a/t/t0105-rack-input-limit-bigger.sh
+++ b/t/t0105-rack-input-limit-bigger.sh
@@ -16,9 +16,10 @@ t_begin "setup and startup" && {
 
 t_begin "stops a regular request" && {
         rm -f $ok
-        dd if=/dev/zero bs=102485761 count=1 of=$tmp
+        dd if=/dev/zero bs=10485761 count=1 of=$tmp
         curl -vsSf -T $tmp -H Expect: \
           http://$listen/ > $curl_out 2> $curl_err || > $ok
+        rm -f $tmp
         dbgcat curl_err
         dbgcat curl_out
         test -e $ok
@@ -26,7 +27,7 @@ t_begin "stops a regular request" && {
 
 t_begin "stops a large chunked request" && {
         rm -f $ok
-        dd if=/dev/zero bs=102485761 count=1 | \
+        dd if=/dev/zero bs=10485761 count=1 | \
           curl -vsSf -T- -H Expect: \
           http://$listen/ > $curl_out 2> $curl_err || > $ok
         dbgcat curl_err
@@ -73,6 +74,7 @@ t_begin "right size sha1 content-length ok" && {
         dd if=/dev/zero bs=10485760 count=1 of=$tmp
         curl -vsSf -T $tmp -H Expect: \
           http://$listen/ > $curl_out 2> $curl_err
+        rm -f $tmp
         dbgcat curl_err
         dbgcat curl_out
         test "$(cat $curl_out)" = $blob_sha1
@@ -95,6 +97,7 @@ t_begin "default size sha1 content-length ok" && {
         dd if=/dev/zero bs=1048576 count=1 of=$tmp
         curl -vsSf -T $tmp -H Expect: \
           http://$listen/ > $curl_out 2> $curl_err
+        rm -f $tmp
         dbgcat curl_err
         dbgcat curl_out
         test "$(cat $curl_out)" = $blob_sha1