-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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: Fix mock timer promisified setInterval return value #50331
Conversation
Review requested:
|
78d949e
to
af38302
Compare
02d7e2e
to
e65beea
Compare
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.
LGTM. @mika-fischer congrats on your first PR on the nodejs repo!! It's really helpful!
@mika-fischer the PR needs a rebase |
promisified setInterval can be passed a value that is returned by the async iterable. The mocked promisified setInterval used this value for its own purposes. This brings the mocked version in line with the original. Fixes: nodejs#50307
Some tests relied on the custom return value and were broken by the change to always return the value provided by the caller.
e65beea
to
06d8b9d
Compare
Thanks @ErickWendel! |
done @MoLow |
I'm not sure why some tests are failing, these seem unrelated to the changes in this PR. Let me know if there's anything I can do to move this along. |
Commit Queue failed- Loading data for nodejs/node/pull/50331 ✔ Done loading data for nodejs/node/pull/50331 ----------------------------------- PR info ------------------------------------ Title test_runner: Fix mock timer promisified setInterval return value (#50331) Author Mika Fischer (@mika-fischer, first-time contributor) Branch mika-fischer:fix-50307 -> nodejs:main Labels author ready, needs-ci, commit-queue-squash, test_runner Commits 3 - test_runner: test return value of mocked promisified timers - test_runner: fix mock timer promisified setInterval return value - test_runner: fix mock timer setInterval tests Committers 1 - Mika Fischer PR-URL: https://github.com/nodejs/node/pull/50331 Reviewed-By: Moshe Atlow Reviewed-By: Chemi Atlow Reviewed-By: Erick Wendel ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/50331 Reviewed-By: Moshe Atlow Reviewed-By: Chemi Atlow Reviewed-By: Erick Wendel -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - test_runner: test return value of mocked promisified timers ⚠ - test_runner: fix mock timer promisified setInterval return value ⚠ - test_runner: fix mock timer setInterval tests ℹ This PR was created on Sun, 22 Oct 2023 20:11:55 GMT ✔ Approvals: 3 ✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/50331#pullrequestreview-1692229637 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/50331#pullrequestreview-1691892475 ✔ - Erick Wendel (@erickwendel): https://github.com/nodejs/node/pull/50331#pullrequestreview-1692276984 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-10-23T18:44:37Z: https://ci.nodejs.org/job/node-test-pull-request/55158/ - Querying data for job/node-test-pull-request/55158/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/6632107907 |
Landed in 4f5db8b |
Did the closure of #50307 get dropped somehow? Should I have specified it differently? Should I close the issue now manually? |
Typically it needs Thank you for your contribution! |
PR-URL: nodejs#50331 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
PR-URL: #50331 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
PR-URL: #50331 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
promisified setInterval can be passed a value that is returned by the async iterable. The mocked promisified setInterval used this value for its own purposes. This brings the mocked version in line with the original.