GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — test_runner: Fix mock timer promisified setInterval return value by mika-fischer · Pull Request #50331 · nodejs/node Conversation
Contributor
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.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
MoLow
approved these changes
mika-fischer
force-pushed
the
fix-50307
branch
from
78d949e to
af38302
Compare
atlowChemi
approved these changes
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
mika-fischer
force-pushed
the
fix-50307
branch
2 times, most recently
from
02d7e2e to
e65beea
Compare
MoLow
approved these changes
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ErickWendel
approved these changes
|
|
@mika-fischer the PR needs a rebase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
done @MoLow |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 4f5db8b |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Did the closure of #50307 get dropped somehow? Should I have specified it differently? Should I close the issue now manually? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Typically it needs Thank you for your contribution! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PR-URL: #50331 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Erick Wendel <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #50331 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Erick Wendel <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
node test mock timer promisified setTimeout & setInterval don't always return the specified value
There was an error while loading. Please reload this page.