Skip to content

Commit e22205b

Browse files
TrottFishrock123
authored andcommitted
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: #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>
1 parent d73c99f commit e22205b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-fs-watch-encoding.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ if (common.isFreeBSD) {
1010
return;
1111
}
1212

13+
common.refreshTmpDir();
14+
1315
const fn = '新建文夹件.txt';
1416
const a = path.join(common.tmpDir, fn);
1517

0 commit comments

Comments
 (0)