diff options
Diffstat (limited to 't/t0011-close-on-exec-set.sh')
-rwxr-xr-x | t/t0011-close-on-exec-set.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0011-close-on-exec-set.sh b/t/t0011-close-on-exec-set.sh index 9c66575..73f4ede 100755 --- a/t/t0011-close-on-exec-set.sh +++ b/t/t0011-close-on-exec-set.sh @@ -13,12 +13,12 @@ t_begin "setup and start" && { t_begin "send keepalive req expect it to timeout in ~1s" && { 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 )) |