Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix unreliable test-fs-write-file.js
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
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
Trott committed Nov 12, 2020
commit f03f7cbd3513e90f4f59cca2f4f2bd97678878bb
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 @@ -87,7 +87,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