mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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 <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
1 parent
660265e108
commit
f03f7cbd35
1 file changed
+1
-1
@@ -87,7 +87,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');
|
||||
|
||||
Reference in new issue
Block a user