-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(ext/node): add chown method to FileHandle class #27638
Conversation
Windows test seems to have failed |
Similar to #27522, |
try { | ||
await fileHandle.chown(nobodyUid, nobodyGid); | ||
} catch (e) { | ||
assert( | ||
e instanceof Deno.errors.PermissionDenied, | ||
"Expected permissionDenied error", | ||
); | ||
} |
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.
Can you use assertRejects
instead? This passes when await fileHandle.chown(nobodyUid, nobodyGid)
doesn't throw
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.
I didn't know about assertRejects
. I will take it.
2f53612
to
9f1c0d8
Compare
Signed-off-by: Yoshiya Hinosawa <[email protected]>
test release linux-x86_64 is failed. I don't understand why this test fails. |
Looks like a flaky failure. I'll rerun it |
CI is passed! |
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. Thanks for your contribution!
Add a chown method to the FileHandle class #25554.
This is my first PR. if there is anything missing, please let me know so I can fix it.