diff --git a/test/known_issues/test-fs-copyfile-respect-permissions.js b/test/parallel/test-fs-copyfile-respect-permissions.js similarity index 90% rename from test/known_issues/test-fs-copyfile-respect-permissions.js rename to test/parallel/test-fs-copyfile-respect-permissions.js index 34697eea6c0bef..2021e9ba63155d 100644 --- a/test/known_issues/test-fs-copyfile-respect-permissions.js +++ b/test/parallel/test-fs-copyfile-respect-permissions.js @@ -23,7 +23,8 @@ function beforeEach() { fs.chmodSync(dest, '444'); const check = (err) => { - assert.strictEqual(err.code, 'EACCES'); + const expected = ['EACCES', 'EPERM']; + assert(expected.includes(err.code), `${err.code} not in ${expected}`); assert.strictEqual(fs.readFileSync(dest, 'utf8'), 'dest'); return true; };