diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2022-08-25 02:16:56 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2022-09-01 15:42:34 +0800 |
commit | 4e6fdb3e12b3a19cf7bcabc18a2aaa1d03181a07 (patch) | |
tree | fee13317c3ee1e811ac1eef6d7e1086d5f39d9f8 /deps/npm/node_modules/diff/lib/patch | |
parent | f36813c598bc8dfee13e14bf840d85989f8719d3 (diff) | |
download | node-new-4e6fdb3e12b3a19cf7bcabc18a2aaa1d03181a07.tar.gz |
test: avoid race in file write stream handle tests
The test previously created two fs.promises.open calls on the
same file with w+ back-to-back, and one of them could fail
when checking the contents of that file if the other happened
to be opening the file for write. Split them into different
tests (with different tmpdir) to avoid the race.
PR-URL: https://github.com/nodejs/node/pull/44380
Refs: https://github.com/nodejs/reliability/issues/354
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'deps/npm/node_modules/diff/lib/patch')
0 files changed, 0 insertions, 0 deletions