t/t0300-async_sinatra.sh in rainbows-4.4.3 vs t/t0300-async_sinatra.sh in rainbows-4.5.0
- old
+ new
@@ -22,18 +22,18 @@
rainbows -E none -D $CONFIG_RU -c $unicorn_config
rainbows_wait_start
}
t_begin "send async requests off in parallel" && {
- t0=$(date +%s)
- ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | utee $a) &
- ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | utee $b) &
- ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | utee $c) &
+ t0=$(unix_time)
+ ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | tee $a) &
+ ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | tee $b) &
+ ( curl --no-buffer -sSf http://$listen/$n 2>> $curl_err | tee $c) &
}
t_begin "ensure elapsed requests were processed in parallel" && {
wait
- t1=$(date +%s)
+ t1=$(unix_time)
elapsed=$(( $t1 - $t0 ))
echo "elapsed=$elapsed < 30"
test $elapsed -lt 30
}