Skip to content

Commit

Permalink
test: refresh the tmpdir before using
Browse files Browse the repository at this point in the history
Test fails if tmp dir does not exist when the test is run. Add
common.refreshTmpDir() so that doesn't happen.

PR-URL: #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>
  • Loading branch information
Trott authored and Fishrock123 committed Jun 27, 2016
1 parent d73c99f commit e22205b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-fs-watch-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ if (common.isFreeBSD) {
return;
}

common.refreshTmpDir();

const fn = '新建文夹件.txt';
const a = path.join(common.tmpDir, fn);

Expand Down

0 comments on commit e22205b

Please sign in to comment.