about summary refs log tree commit homepage
path: root/t/t0010-keepalive-timeout-effective.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0010-keepalive-timeout-effective.sh')
-rwxr-xr-xt/t0010-keepalive-timeout-effective.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0010-keepalive-timeout-effective.sh b/t/t0010-keepalive-timeout-effective.sh
index 0a6236f..3b3fee4 100755
--- a/t/t0010-keepalive-timeout-effective.sh
+++ b/t/t0010-keepalive-timeout-effective.sh
@@ -16,12 +16,12 @@ t_begin 'check server up' && {
 
 t_begin "send keepalive response that does not expect close" && {
         req='GET / HTTP/1.1\r\nHost: example.com\r\n\r\n'
-        t0=$(date +%s)
+        t0=$(unix_time)
         (
                 cat $fifo > $tmp &
                 printf "$req"
                 wait
-                date +%s > $ok
+                unix_time > $ok
         ) | socat - TCP:$listen > $fifo
         now="$(cat $ok)"
         elapsed=$(( $now - $t0 ))