Skip to content

Commit b368571

Browse files
committed
test: move known issue test to parallel
As of libuv 1.28.0, this bug is fixed, and the test can be moved to parallel. This commit also updates an error code check to work on Windows. PR-URL: #27241 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent aec2ce4 commit b368571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/known_issues/test-fs-copyfile-respect-permissions.js test/parallel/test-fs-copyfile-respect-permissions.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function beforeEach() {
2323
fs.chmodSync(dest, '444');
2424

2525
const check = (err) => {
26-
assert.strictEqual(err.code, 'EACCES');
26+
const expected = ['EACCES', 'EPERM'];
27+
assert(expected.includes(err.code), `${err.code} not in ${expected}`);
2728
assert.strictEqual(fs.readFileSync(dest, 'utf8'), 'dest');
2829
return true;
2930
};

0 commit comments

Comments
 (0)