Skip to content

Commit 3753f47

Browse files
richardlauBridgeAR
authored andcommittedJan 3, 2020
test: use tmpdir.refresh() in test-esm-windows.js
Use `tmpdir.refresh()` in `test/es-module/test-esm-windows.js` so that the temporary directory is cleaned before use and when the test exits. PR-URL: #30997 Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7815d5f commit 3753f47

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎test/es-module/test-esm-windows.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ const imp = (file) => {
1414
};
1515

1616
(async () => {
17-
const tmp = tmpdir.path;
18-
await fs.mkdir(tmp).catch(() => {});
19-
const rel = (file) => path.join(tmp, file);
17+
tmpdir.refresh();
18+
const rel = (file) => path.join(tmpdir.path, file);
2019

2120
{ // Load a single script
2221
const file = rel('con.mjs');

0 commit comments

Comments
 (0)
Please sign in to comment.