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), }); }