Skip to content

Commit

Permalink
test: fix error that occurs with test for fsPromises.lchmod
Browse files Browse the repository at this point in the history
  • Loading branch information
shisama committed May 25, 2018
1 parent 9050df0 commit ea2a7c7
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit ea2a7c7

Please sign in to comment.