From 6c92c1391a3dc8e97530012581337259ea429d0a Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Sat, 28 Sep 2024 16:34:33 -0300 Subject: [PATCH] test: add resource to internal module stat test PR-URL: https://github.com/nodejs/node/pull/55157 Reviewed-By: Yagiz Nizipli --- test/parallel/test-permission-fs-internal-module-stat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-permission-fs-internal-module-stat.js b/test/parallel/test-permission-fs-internal-module-stat.js index 0075afb8bb5..2f000f4814a 100644 --- a/test/parallel/test-permission-fs-internal-module-stat.js +++ b/test/parallel/test-permission-fs-internal-module-stat.js @@ -10,6 +10,7 @@ if (!common.hasCrypto) { const { internalBinding } = require('internal/test/binding'); const assert = require('node:assert'); +const path = require('node:path'); const fixtures = require('../common/fixtures'); const blockedFile = fixtures.path('permission', 'deny', 'protected-file.md'); @@ -22,5 +23,6 @@ for (let i = 0; i < 10_000; i++) { }, { code: 'ERR_ACCESS_DENIED', permission: 'FileSystemRead', + resource: path.toNamespacedPath(blockedFile), }); }