Skip to content

Commit

Permalink
test: fix unreliable test-fs-write-file.js
Browse files Browse the repository at this point in the history
The test uses a file name twice, causing unreliability in CI. In
particular, it's failing a lot on the Raspberry Pi devices.

Fixes: #36090

PR-URL: #36102
Backport-PR-URL: #38386
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
Trott authored and targos committed Apr 30, 2021
1 parent b1507c4 commit de654bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-write-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fs.open(filename4, 'w+', common.mustSucceed((fd) => {
// After the operation has started
const controller = new AbortController();
const signal = controller.signal;
const filename4 = join(tmpdir.path, 'test4.txt');
const filename4 = join(tmpdir.path, 'test5.txt');

fs.writeFile(filename4, s, { signal }, common.mustCall((err) => {
assert.strictEqual(err.name, 'AbortError');
Expand Down

0 comments on commit de654bf

Please sign in to comment.