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: add fs/promises filehandle stat test #20492

Closed

Conversation

shisama
Copy link
Contributor

@shisama shisama commented May 3, 2018

Added test for fs/promises filehandle stat.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Added test for fs/promises filehandle stat.
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label May 3, 2018
common.crashOnUnhandledRejection();

async function validateStat() {
const filePath = path.resolve(tmpDir, 'tmp-read-file.txt');
Copy link
Member

Choose a reason for hiding this comment

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

tmpDir is used used only once here.
Can we remove variable tmpDir and pass tmpdir.path here, so that there's no confusion between similar looking variables tmpdir and tmpDir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@trivikr
Thank you. I fixed it.

@trivikr
Copy link
Member

trivikr commented May 4, 2018

@trivikr
Copy link
Member

trivikr commented May 5, 2018

CI rerun for node-test-commit-aix https://ci.nodejs.org/job/node-test-commit-aix/14731/

@trivikr trivikr added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 5, 2018
trivikr pushed a commit that referenced this pull request May 5, 2018
Added test for fs/promises filehandle stat.

PR-URL: #20492
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@trivikr
Copy link
Member

trivikr commented May 5, 2018

Landed in f74b344

Congratulations @shisama on your first commit in Node.js core! 🎉 🎉 🎉

@trivikr trivikr closed this May 5, 2018
@ChALkeR ChALkeR added the experimental Issues and PRs related to experimental features. label May 8, 2018
MylesBorins pushed a commit that referenced this pull request May 8, 2018
Added test for fs/promises filehandle stat.

PR-URL: #20492
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request May 8, 2018
MylesBorins pushed a commit that referenced this pull request May 8, 2018
Added test for fs/promises filehandle stat.

PR-URL: #20492
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request May 9, 2018
Added test for fs/promises filehandle stat.

PR-URL: #20492
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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. experimental Issues and PRs related to experimental features. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants