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: #36090 PR-URL: #36102 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
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

+1-1
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)