From 4e3df0e731c0719207fd60e4a0d51c42a9e074d7 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 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 --- 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 };