From cdcfeb762800d0e6031a367e5182cc4fb2a59e2d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 16 Jun 2016 09:48:21 -0700 Subject: [PATCH] test: refresh the tmpdir before using MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test fails if tmp dir does not exist when the test is run. Add common.refreshTmpDir() so that doesn't happen. PR-URL: https://github.com/nodejs/node/pull/7327 Reviewed-By: Colin Ihrig Reviewed-By: Johan Bergström Reviewed-By: Santiago Gimeno Reviewed-By: Brian White Reviewed-By: Anna Henningsen --- test/parallel/test-fs-watch-encoding.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-fs-watch-encoding.js b/test/parallel/test-fs-watch-encoding.js index 47cb70310825c1..449d0c8bf4050c 100644 --- a/test/parallel/test-fs-watch-encoding.js +++ b/test/parallel/test-fs-watch-encoding.js @@ -10,6 +10,8 @@ if (common.isFreeBSD) { return; } +common.refreshTmpDir(); + const fn = '新建文夹件.txt'; const a = path.join(common.tmpDir, fn);