about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xt/t0102-rack-input-short.sh2
-rw-r--r--t/test-lib.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/t/t0102-rack-input-short.sh b/t/t0102-rack-input-short.sh
index 97c079d..6161cdd 100755
--- a/t/t0102-rack-input-short.sh
+++ b/t/t0102-rack-input-short.sh
@@ -8,7 +8,7 @@ t_begin "setup and startup" && {
         rtmpfiles curl_out curl_err
         rainbows_setup $model
         rainbows -D sha1-random-size.ru -c $unicorn_config
-        blob_sha1=$(rsha1 random_blob)
+        blob_sha1=$(rsha1 < random_blob)
         t_info "blob_sha1=$blob_sha1"
         rainbows_wait_start
 }
diff --git a/t/test-lib.sh b/t/test-lib.sh
index bf2e7b5..cdeff39 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -159,7 +159,7 @@ rsha1 () {
 
         # last resort, see comments in sha1sum.rb for reasoning
         test -n "$_cmd" || _cmd=sha1sum.rb
-        expr "$($_cmd < random_blob)" : '\([a-f0-9]\{40\}\)'
+        expr "$($_cmd)" : '\([a-f0-9]\{40\}\)'
 }
 
 case $model in