Skip to content

test: fix incorrect calculation in test-perf-hooks.js#60271

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-origin
Oct 18, 2025
Merged

test: fix incorrect calculation in test-perf-hooks.js#60271
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-origin

Conversation

@joyeecheung
Copy link
Member

@joyeecheung joyeecheung commented Oct 15, 2025

After https://redirect.github.com/nodejs/node/pull/46588, Date.now() - performance.timeOrigin and process.uptime() are no longer similar - the former measures uptime from process initilaization, while the latter measures uptime from the main context initialization. Account for the differences in the test.

This failed 11 PRs out of the last 100 CI runs in the latest reliability report.

Refs: https://github.com/nodejs/reliability/blob/main/reports/2025-10-15.md

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants