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 test for fsPromises.lchmod #20584

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: fix error that occurs with test for fsPromises.lchmod
  • Loading branch information
shisama committed May 25, 2018
commit ea2a7c78e2c0f0e18c8bae41308eb52cbd430f35
3 changes: 2 additions & 1 deletion test/parallel/test-fs-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ function verifyStatObject(stat) {
// lchmod is only available on macOS
const newMode = 0o666;
await lchmod(newLink, newMode);
assert.strictEqual(await lstat(newLink).mode & 0o777, newMode);
stats = await lstat(newLink);
assert.strictEqual(stats.mode & 0o777, newMode);
}


Expand Down