diff options
author | cjihrig <cjihrig@gmail.com> | 2019-04-15 11:43:56 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-04-22 12:04:35 -0400 |
commit | b368571fba2bd7bceb18a3ef64d20769ca13bd27 (patch) | |
tree | 600b05b2889d9a1a4de1b1b4f95ccd3fdd358387 /test | |
parent | aec2ce4ee11c766d4c7fcc532f794a758404a6c7 (diff) | |
download | android-node-v8-b368571fba2bd7bceb18a3ef64d20769ca13bd27.tar.gz android-node-v8-b368571fba2bd7bceb18a3ef64d20769ca13bd27.tar.bz2 android-node-v8-b368571fba2bd7bceb18a3ef64d20769ca13bd27.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-fs-copyfile-respect-permissions.js (renamed from test/known_issues/test-fs-copyfile-respect-permissions.js) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/known_issues/test-fs-copyfile-respect-permissions.js b/test/parallel/test-fs-copyfile-respect-permissions.js index 34697eea6c..2021e9ba63 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; }; |