Skip to content

Commit de654bf

Browse files
Trotttargos
authored andcommitted
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 Backport-PR-URL: #38386 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent b1507c4 commit de654bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-write-file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fs.open(filename4, 'w+', common.mustSucceed((fd) => {
8888
// After the operation has started
8989
const controller = new AbortController();
9090
const signal = controller.signal;
91-
const filename4 = join(tmpdir.path, 'test4.txt');
91+
const filename4 = join(tmpdir.path, 'test5.txt');
9292

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

0 commit comments

Comments
 (0)