-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: apply test-fs-access to promises API #20667
Conversation
Add tests for `fs.promises.access()` in all test cases in `test-fs-access` that are relevant to the Promises-based API.
For clarity, suppress whitespace changes in the diff: https://github.com/nodejs/node/pull/20667/files?utf8=%E2%9C%93&diff=unified&w=1 |
Linux re-run: https://ci.nodejs.org/job/node-test-commit-linux/18682/ |
@nodejs/fs @ChALkeR |
@nodejs/testing |
While this can land as things stand now, I'd love to get another review or two. @nodejs/collaborators |
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
Landed in 617f0d2 |
Add tests for `fs.promises.access()` in all test cases in `test-fs-access` that are relevant to the Promises-based API. PR-URL: #20667 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Add tests for `fs.promises.access()` in all test cases in `test-fs-access` that are relevant to the Promises-based API. PR-URL: #20667 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Add tests for
fs.promises.access()
in all test cases intest-fs-access
that are relevant to the Promises-based API.In the course of working on #20439, I started to wonder if adding more abstractions in the test suite was a mistake. This is what things look like fixing up one of the many
fs
tests to also test the promises-based API. I suspect the end result is easier to follow and easier to emulate in other tests.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes