Permalink
Browse files

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>
  • Loading branch information...
Trott authored and MylesBorins committed Dec 17, 2018
1 parent a9ab28d commit 3e1fe1919470e5918b7316e736b0ff8b62866192
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 };

0 comments on commit 3e1fe19

Please sign in to comment.