Skip to content

Commit 3e1fe19

Browse files
TrottMylesBorins
authored andcommitted
test: add missing tmpdir.refresh() in recently-added test
Without `tmpdir.refresh()`, the test fails in some situations. This was missed because using `test.py` will almost always result in a leftover tmpdir lying around that makes the `refresh()` not needed. Refs: #24913 (comment) PR-URL: #25098 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent a9ab28d commit 3e1fe19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-child-process-spawn-args.js

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const { spawn } = require('child_process');
1212
const common = require('../common');
1313
const tmpdir = require('../common/tmpdir');
1414

15+
tmpdir.refresh();
16+
1517
const command = common.isWindows ? 'cd' : 'pwd';
1618
const options = { cwd: tmpdir.path };
1719

0 commit comments

Comments
 (0)