test: deflake WASI poll timing checks · nodejs/node@554a3fb · GitHub
Skip to content

Commit 554a3fb

Browse files
panvaaduh95
authored andcommitted
test: deflake WASI poll timing checks
Use a monotonic high-resolution clock for elapsed-time checks and allow a small tolerance for timer granularity. The previous whole-second clock could report an interval one second short when a slightly early timer coincided with a wall-clock boundary. Assisted-by: Codex Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65672 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 46d4549 commit 554a3fb

4 files changed

Lines changed: 40 additions & 14 deletions

File tree

‎test/wasi/c/poll.c‎

Lines changed: 20 additions & 7 deletions

‎test/wasi/c/poll_win.c‎

Lines changed: 20 additions & 7 deletions

‎test/wasi/wasm/poll.wasm‎

781 Bytes
Binary file not shown.

‎test/wasi/wasm/poll_win.wasm‎

-9.08 KB
Binary file not shown.

0 commit comments

Comments
 (0)