Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented May 10, 2018

Add tests for fs.promises.access() in all test cases in
test-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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Add tests for `fs.promises.access()` in all test cases in
`test-fs-access` that are relevant to the Promises-based API.
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label May 10, 2018
@Trott Trott added the fs Issues and PRs related to the fs subsystem / file system. label May 10, 2018
@Trott
Copy link
Member Author

Trott commented May 11, 2018

@Trott
Copy link
Member Author

Trott commented May 11, 2018

For clarity, suppress whitespace changes in the diff: https://github.com/nodejs/node/pull/20667/files?utf8=%E2%9C%93&diff=unified&w=1

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 11, 2018
@Trott
Copy link
Member Author

Trott commented May 12, 2018

@Trott
Copy link
Member Author

Trott commented May 12, 2018

@nodejs/fs @ChALkeR

@Trott
Copy link
Member Author

Trott commented May 12, 2018

@nodejs/testing

@Trott
Copy link
Member Author

Trott commented May 14, 2018

While this can land as things stand now, I'd love to get another review or two. @nodejs/collaborators

Copy link
Member

@trivikr trivikr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@addaleax
Copy link
Member

Landed in 617f0d2

@addaleax addaleax closed this May 14, 2018
addaleax pushed a commit that referenced this pull request May 14, 2018
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>
addaleax pushed a commit that referenced this pull request May 14, 2018
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>
@addaleax addaleax mentioned this pull request May 14, 2018
@Trott Trott deleted the fs-promises-access-test branch January 13, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants