-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Conversation
Added test for fs/promises filehandle stat.
common.crashOnUnhandledRejection(); | ||
|
||
async function validateStat() { | ||
const filePath = path.resolve(tmpDir, 'tmp-read-file.txt'); |
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.
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
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.
@trivikr
Thank you. I fixed it.
CI rerun for node-test-commit-aix https://ci.nodejs.org/job/node-test-commit-aix/14731/ |
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>
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>
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>
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>
Added test for fs/promises filehandle stat.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes