Skip to content

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.

Refs: https://github.com/nodejs/reliability/issues/354

Merge request reports

Loading