From de654bf5b4860fdfa74682a626fb3b903b33aa93 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 12 Nov 2020 11:23:46 -0800 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/36090 PR-URL: https://github.com/nodejs/node/pull/36102 Backport-PR-URL: https://github.com/nodejs/node/pull/38386 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau --- test/parallel/test-fs-write-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-write-file.js b/test/parallel/test-fs-write-file.js index 3484782a8d4071..129560e63601fa 100644 --- a/test/parallel/test-fs-write-file.js +++ b/test/parallel/test-fs-write-file.js @@ -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');