mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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: https://github.com/nodejs/node/pull/27241 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
aec2ce4ee1
commit
b368571fba
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user