summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-watch-encoding.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-06-16 09:48:21 -0700
committerRich Trott <rtrott@gmail.com>2016-06-21 21:11:53 -0700
commitcdcfeb762800d0e6031a367e5182cc4fb2a59e2d (patch)
tree62cd75b50d1b9026fa21adfc6bde82bc188aea38 /test/parallel/test-fs-watch-encoding.js
parent92adbe4793489b3207a615cdc442681a054302b0 (diff)
downloadnode-new-cdcfeb762800d0e6031a367e5182cc4fb2a59e2d.tar.gz
test: refresh the tmpdir before using
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 <cjihrig@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-fs-watch-encoding.js')
-rw-r--r--test/parallel/test-fs-watch-encoding.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-fs-watch-encoding.js b/test/parallel/test-fs-watch-encoding.js
index 47cb703108..449d0c8bf4 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);