mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05: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. Backport-PR-URL: https://github.com/nodejs/node/pull/27776 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:
1 parent
4c87c1b1bc
commit
1fc2c5bed1
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user