about summary refs log tree commit homepage
path: root/t/t0003-reopen-logs.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0003-reopen-logs.sh')
-rwxr-xr-xt/t0003-reopen-logs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0003-reopen-logs.sh b/t/t0003-reopen-logs.sh
index 910a0a5..8e2cdc5 100755
--- a/t/t0003-reopen-logs.sh
+++ b/t/t0003-reopen-logs.sh
@@ -17,7 +17,7 @@ t_begin "ensure server is responsive" && {
 }
 
 t_begin "start $nr_client concurrent requests" && {
-        start=$(date +%s)
+        start=$(unix_time)
         for i in $(awk "BEGIN{for(i=0;i<$nr_client;++i) print i}" </dev/null)
         do
                 ( curl -sSf http://$listen/2 >> $curl_out 2>> $curl_err ) &
@@ -59,7 +59,7 @@ dbgcat r_err
 
 t_begin "wait curl requests to finish" && {
         wait
-        t_info elapsed=$(( $(date +%s) - $start ))
+        t_info elapsed=$(( $(unix_time) - $start ))
 }
 
 t_begin "ensure no errors from curl" && {