-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: use process.hrtime.bigint
instead of process.hrtime
#45877
test: use process.hrtime.bigint
instead of process.hrtime
#45877
Conversation
b347bf0
to
ea38ffc
Compare
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]>
ea38ffc
to
6b0e8d6
Compare
@@ -5,6 +5,8 @@ if (!common.hasCrypto) | |||
common.skip('missing crypto'); | |||
const assert = require('assert'); | |||
const http2 = require('http2'); | |||
const hrtime = process.hrtime.bigint; | |||
const NS_PER_MS = 1000000n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const NS_PER_MS = 1000000n; | |
const NS_PER_MS = 1_000_000n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied your suggestion. Thank you for suggestion.
Commit Queue failed- Loading data for nodejs/node/pull/45877 ✔ Done loading data for nodejs/node/pull/45877 ----------------------------------- PR info ------------------------------------ Title test: use `process.hrtime.bigint` instead of `process.hrtime` (#45877) Author Deokjin Kim (@deokjinkim) Branch deokjinkim:221216_use_hrtime_bigint -> nodejs:main Labels test, author ready, needs-ci Commits 2 - test: use `process.hrtime.bigint` instead of `process.hrtime` - Revise format of NS_PER_MS Committers 1 - Deokjin Kim PR-URL: https://github.com/nodejs/node/pull/45877 Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/45877 Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel -------------------------------------------------------------------------------- ℹ This PR was created on Fri, 16 Dec 2022 04:30:59 GMT ✔ Approvals: 2 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/45877#pullrequestreview-1223228434 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/45877#pullrequestreview-1223230198 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-12-28T11:55:39Z: https://ci.nodejs.org/job/node-test-pull-request/48749/ - Querying data for job/node-test-pull-request/48749/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 45877 From https://github.com/nodejs/node * branch refs/pull/45877/merge -> FETCH_HEAD ✔ Fetched commits as 5e43f3d77694..ecc7caabeb39 -------------------------------------------------------------------------------- [main 3232ff220d] test: use `process.hrtime.bigint` instead of `process.hrtime` Author: Deokjin Kim Date: Fri Dec 16 13:27:05 2022 +0900 1 file changed, 10 insertions(+), 8 deletions(-) [main 89e27a7a55] Revise format of NS_PER_MS Author: Deokjin Kim Date: Sat Dec 17 02:56:22 2022 +0900 1 file changed, 1 insertion(+), 1 deletion(-) ✔ Patches applied There are 2 commits in the PR. Attempting autorebase. Rebasing (2/4)https://github.com/nodejs/node/actions/runs/3816511183 |
Landed in 4b9f94b |
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]> PR-URL: #45877 Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]> PR-URL: #45877 Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]> PR-URL: #45877 Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]> PR-URL: #45877 Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
`process.hrtime` is legacy. So replace `process.hrtime` with `process.hrtime.bigint` in test. Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime Signed-off-by: Deokjin Kim <[email protected]> PR-URL: #45877 Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
process.hrtime
is legacy. So replaceprocess.hrtime
withprocess.hrtime.bigint
in test.Refs: https://github.com/nodejs/node/blob/main/doc/api/process.md#processhrtimetime
Refs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
Signed-off-by: Deokjin Kim [email protected]