From 9abc11ad77d1d5aaf6cf23cbeb9b3556f9df0716 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 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');