From 3e1fe1919470e5918b7316e736b0ff8b62866192 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 17 Dec 2018 13:42:46 -0800 Subject: [PATCH] test: add missing tmpdir.refresh() in recently-added test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/24913#issuecomment-447982921 PR-URL: https://github.com/nodejs/node/pull/25098 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso Reviewed-By: Daijiro Wachi Reviewed-By: Anto Aravinth --- test/parallel/test-child-process-spawn-args.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-child-process-spawn-args.js b/test/parallel/test-child-process-spawn-args.js index 35a1ea40208adf..821525409c8fca 100644 --- a/test/parallel/test-child-process-spawn-args.js +++ b/test/parallel/test-child-process-spawn-args.js @@ -12,6 +12,8 @@ const { spawn } = require('child_process'); const common = require('../common'); const tmpdir = require('../common/tmpdir'); +tmpdir.refresh(); + const command = common.isWindows ? 'cd' : 'pwd'; const options = { cwd: tmpdir.path };