-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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_runner: add mock timers for nodeTimers.promises.scheduler.wait #55244
test_runner: add mock timers for nodeTimers.promises.scheduler.wait #55244
Conversation
Review requested:
|
559ff1f
to
c240668
Compare
@ErickWendel I've unassigned you from the PR as there's really no need for assignments, you're the author. |
c240668
to
efbe21f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55244 +/- ##
==========================================
+ Coverage 88.39% 88.41% +0.02%
==========================================
Files 652 652
Lines 186565 186881 +316
Branches 36046 36065 +19
==========================================
+ Hits 164916 165237 +321
+ Misses 14908 14891 -17
- Partials 6741 6753 +12
|
Does this need docs? |
I don't think so. In the current docs just say that all timers from node:timers are covered (in my initial code I put the list, but it was updated after removing it) |
This adds support for nodetimers.promises.scheduler.wait on Mocktimers Refs: nodejs#55244
efbe21f
to
231f650
Compare
just renamed the commit according to the standards |
Commit Queue failed- Loading data for nodejs/node/pull/55244 ✔ Done loading data for nodejs/node/pull/55244 ----------------------------------- PR info ------------------------------------ Title test_runner: add mock timers for nodeTimers.promises.scheduler.wait (#55244) Author Erick Wendel <erick.workspace@gmail.com> (@ErickWendel) Branch ErickWendel:test-runner/mock-timers-add-scheduler-wait -> nodejs:main Labels timers, needs-ci, test_runner Commits 1 - test_runner: add support for scheduler.wait on mock timers Committers 1 - Erick Wendel <erick.workspace@gmail.com> PR-URL: https://github.com/nodejs/node/pull/55244 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/55244 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - test_runner: add support for scheduler.wait on mock timers ℹ This PR was created on Thu, 03 Oct 2024 01:05:28 GMT ✔ Approvals: 3 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364320039 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364963382 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364971775 ✘ Last GitHub CI failed ℹ Last Full PR CI on 2024-10-14T19:24:25Z: https://ci.nodejs.org/job/node-test-pull-request/63102/ - Querying data for job/node-test-pull-request/63102/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/11344079867 |
Commit Queue failed- Loading data for nodejs/node/pull/55244 ✔ Done loading data for nodejs/node/pull/55244 ----------------------------------- PR info ------------------------------------ Title test_runner: add mock timers for nodeTimers.promises.scheduler.wait (#55244) Author Erick Wendel <erick.workspace@gmail.com> (@ErickWendel) Branch ErickWendel:test-runner/mock-timers-add-scheduler-wait -> nodejs:main Labels timers, needs-ci, test_runner Commits 1 - test_runner: add support for scheduler.wait on mock timers Committers 1 - Erick Wendel <erick.workspace@gmail.com> PR-URL: https://github.com/nodejs/node/pull/55244 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/55244 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - test_runner: add support for scheduler.wait on mock timers ℹ This PR was created on Thu, 03 Oct 2024 01:05:28 GMT ✔ Approvals: 3 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364320039 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364963382 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/55244#pullrequestreview-2364971775 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-10-15T15:33:07Z: https://ci.nodejs.org/job/node-test-pull-request/63118/ - Querying data for job/node-test-pull-request/63118/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/11350662769 |
Landed in 2545b9e |
This adds support for nodetimers.promises.scheduler.wait on Mocktimers Refs: nodejs#55244 PR-URL: nodejs#55244 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
add mock timers for nodeTimers.promises.scheduler.wait