Skip to content

Commit b0b43b2

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: nodejs/node#36090 PR-URL: nodejs/node#36102 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent b477447 commit b0b43b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fs.open(filename4, 'w+', common.mustSucceed((fd) => {
8787
// After the operation has started
8888
const controller = new AbortController();
8989
const signal = controller.signal;
90-
const filename4 = join(tmpdir.path, 'test4.txt');
90+
const filename4 = join(tmpdir.path, 'test5.txt');
9191

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

0 commit comments

Comments
 (0)