Skip to content

Commit ea2a7c7

Browse files
author
shisama
committed
test: fix error that occurs with test for fsPromises.lchmod
1 parent 9050df0 commit ea2a7c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-fs-promises.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ function verifyStatObject(stat) {
141141
// lchmod is only available on macOS
142142
const newMode = 0o666;
143143
await lchmod(newLink, newMode);
144-
assert.strictEqual(await lstat(newLink).mode & 0o777, newMode);
144+
stats = await lstat(newLink);
145+
assert.strictEqual(stats.mode & 0o777, newMode);
145146
}
146147

147148

0 commit comments

Comments
 (0)