tests: use Time::HiRes `sleep' and `time' everywhere
commitdd9f2efeebf20cfa1def0ce92cb4e35a8b5c1580
authorEric Wong <BOFH@YHBT.net>
Sun, 10 Sep 2023 09:35:09 +0000 (10 09:35 +0000)
committerEric Wong <BOFH@YHBT.net>
Sun, 10 Sep 2023 19:55:13 +0000 (10 19:55 +0000)
tree88aac55633ebfb5173eae2d9a8d152524321932f
parent948f78403172657590d690b9255467b9ccb968cd
tests: use Time::HiRes `sleep' and `time' everywhere

The time(2) syscall use by CORE::time is inaccurate[1].
It's also easier to read `sleep 0.01' rather than the
longer `select' equivalent.

[1] a6463151bd1db5b9 (httpdate: favor gettimeofday(2) over time(2) for correctness, 2023-06-01)
t/active-unix-socket.t
t/integration.t
t/lib.perl
t/reload-bad-config.t
t/reopen-logs.t
t/winch_ttin.t