Skip to content

Allow 1ms slop in blocking tests to fix flakiness (#26282)#26287

Open
dschuff wants to merge 1 commit intoemscripten-core:mainfrom
dschuff:test_poll
Open

Allow 1ms slop in blocking tests to fix flakiness (#26282)#26287
dschuff wants to merge 1 commit intoemscripten-core:mainfrom
dschuff:test_poll

Conversation

@dschuff
Copy link
Member

@dschuff dschuff commented Feb 17, 2026

On the Chromium CI's node.js, setTimeout seems to be sometimes firing 1ms early relative to Date.now(), which caused these tests to fail their strict duration assertions. Allowing 1ms of slop resolves this without compromising the intent of the test.

)

On the Chromium CI's node.js, setTimeout seems to be sometimes firing
1ms early relative to Date.now(), which caused these tests to fail
their strict duration assertions. Allowing 1ms of slop resolves this
without compromising the intent of the test.
@dschuff dschuff requested a review from sbc100 February 17, 2026 23:45
@sbc100
Copy link
Collaborator

sbc100 commented Feb 18, 2026

Maybe lets see if #26280 fixes the issue first?

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

Comments