From ea2a7c78e2c0f0e18c8bae41308eb52cbd430f35 Mon Sep 17 00:00:00 2001 From: shisama Date: Fri, 25 May 2018 21:22:53 +0900 Subject: [PATCH] test: fix error that occurs with test for fsPromises.lchmod --- test/parallel/test-fs-promises.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }