diff --git a/test/parallel/test-fs-promises.js b/test/parallel/test-fs-promises.js index be263c3ae4fec9..d2e82243458ffe 100644 --- a/test/parallel/test-fs-promises.js +++ b/test/parallel/test-fs-promises.js @@ -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); }