Skip to content

Commit cdcfeb7

Browse files
committed
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 <[email protected]> Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 92adbe4 commit cdcfeb7

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)