Skip to content

test: apply test-fs-access to promises API - #20667

Closed
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:fs-promises-access-test
Closed

test: apply test-fs-access to promises API#20667
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:fs-promises-access-test

Conversation

@Trott

Copy link
Copy Markdown
Member

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-botnodejs-github-bot added the test Issues and PRs related to the tests. label May 10, 2018
@TrottTrott added the fs Issues and PRs related to the fs subsystem / file system. label May 10, 2018
@Trott

Copy link
Copy Markdown
MemberAuthor

@Trott

Copy link
Copy Markdown
MemberAuthor

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

@TrottTrott 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
Copy Markdown
MemberAuthor

@Trott

Copy link
Copy Markdown
MemberAuthor

@nodejs/fs @ChALkeR

@Trott

Copy link
Copy Markdown
MemberAuthor

@nodejs/testing

@Trott

Copy link
Copy Markdown
MemberAuthor

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

@trivikrtrivikr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@addaleax

Copy link
Copy Markdown
Member

Landed in 617f0d2

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>
@addaleaxaddaleax mentioned this pull request May 14, 2018
@Trott
Trott deleted the fs-promises-access-test branch January 13, 2022 22:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Trott@addaleax@danbev@benjamingr@trivikr@nodejs-github-bot