| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/776/pipeline |
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/16968/ Feel free to 👍 this comment if you approve of fast-tracking. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Whoever lands this please also add
Fixes: https://github.com/nodejs/node/issues/22668.
Sorry, something went wrong.
|
Okay, loosened the test a bit more here. New CI: https://ci.nodejs.org/job/node-test-pull-request/16987/ (:heavy_check_mark:) |
Sorry, something went wrong.
| testResolveAsync().then(() => { called = true; }); | ||
|
|
||
| setTimeout(() => { assert(called); }, common.platformTimeout(50)); | ||
| process.on('beforeExit', () => { assert(called); }); |
There was a problem hiding this comment.
Why not use common.mustCall? It uses essentially the same mechanism
Lines 428 to 429 in b85baf7
Sorry, something went wrong.
There was a problem hiding this comment.
The goal is to have no MakeCallback() calls coming from Node.js before the check is run, since those would also run the microtask queue. process.on('exit') would be too late for that, process.on('beforeExit') should be okay.
Sorry, something went wrong.
Fixes: #22668 PR-URL: #22664 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Fixes: #22668 PR-URL: #22664 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
| Back | FazBrowse Home | New Git URL |
Example failure: https://ci.nodejs.org/job/node-test-commit-linux/21264/nodes=fedora-latest-x64/console
Checklist