Skip to content

Conversation

@squeek502
Copy link
Member

@squeek502 squeek502 commented Jan 1, 2026

I've observed this test getting stuck in the 32-bit Windows CI (example one, example two), presumably because the hrtime value happens to be just about at the limit of i32 which is the integer type of LuaJIT when targeting x86-windows (ptrdiff_t), or other such weirdness.

This updated test is basically a port of the libuv test metrics_idle_time_zero in test-metrics.c.

A side benefit is that there's no arbitrary 1 second wait anymore.

I've observed this test getting stuck in the 32-bit Windows CI, presumably because the value happens to be just about at the limit of i32 which is the integer type of LuaJIT when targeting x86-windows (ptrdiff_t).

This updated test is basically a port of the libuv test `metrics_idle_time_zero` in `test-metrics.c`.

A side benefit is that there's no arbitrary 1 second wait anymore.
@squeek502 squeek502 merged commit e6aaebc into luvit:master Jan 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants