From d399e854fcec1796aefbdb0c5be392b58cad17c7 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 18 Mar 2019 10:47:45 +0100 Subject: [PATCH] test: refresh tmpdir in child-process-server-close PR-URL: https://github.com/nodejs/node/pull/26729 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Yongsheng Zhang Reviewed-By: Anto Aravinth Reviewed-By: James M Snell --- test/parallel/test-child-process-server-close.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-child-process-server-close.js b/test/parallel/test-child-process-server-close.js index f03203cdab0e7e..ec95fed67b4fa7 100644 --- a/test/parallel/test-child-process-server-close.js +++ b/test/parallel/test-child-process-server-close.js @@ -4,6 +4,9 @@ const common = require('../common'); const { spawn } = require('child_process'); const net = require('net'); +const tmpdir = require('../common/tmpdir'); +tmpdir.refresh(); + const server = net.createServer((conn) => { conn.on('close', common.mustCall());