mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* chore: bump chromium in DEPS to a1ea0d7aedd6b5fe58fbabfa3b05aa8ee41304ff * update patches * update extensions code * Remove WebPoint https://chromium-review.googlesource.com/c/chromium/src/+/2007474 * fix build * chore: bump chromium in DEPS to 9351e26c2a3714f8bbb10789c71bb51b0b494c75 * update patches * Remove error description from the DidFailLoadWithError message https://chromium-review.googlesource.com/c/chromium/src/+/2011280 * Make SimpleNetworkHintsHandlerImpl use the right NetworkIsolationKey https://chromium-review.googlesource.com/c/chromium/src/+/1994430 * Rename libgtkui to gtk https://chromium-review.googlesource.com/c/chromium/src/+/2011683 * [metrics] Remove histogram Startup.WarmStartTimeFromRemoteProcessStart*. https://chromium-review.googlesource.com/c/chromium/src/+/2003211 * fix requestSingleInstanceLock test * chore: bump chromium in DEPS to a813567a4f17ea08292c2b26fa10d0ffd47010d9 * chore: bump chromium in DEPS to f0aca2de536ceecd6eb66e928051d11e6d11991f * chore: bump chromium in DEPS to 865556af6d0c9d990f5b1816cb792f7c3859667b * chore: bump chromium in DEPS to 98538fdd28c4b6692e4cc2839729bb7ac009586a * update patches * fix broken tests * Update node tests for v8 changes * Update node patches for test failures * Update for number of tests Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net> Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Richard Lau <riclau@uk.ibm.com>
|
|
Date: Mon, 16 Dec 2019 16:25:31 -0500
|
|
Subject: 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: https://github.com/nodejs/node/pull/30997
|
|
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
|
|
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
|
Reviewed-By: Rich Trott <rtrott@gmail.com>
|
|
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
|
Reviewed-By: James M Snell <jasnell@gmail.com>
|
|
(cherry picked from commit e23aebc684a45f725811211f9740bcee3bcdbe26)
|
|
|
|
diff --git a/test/es-module/test-esm-windows.js b/test/es-module/test-esm-windows.js
|
|
index 64ba1249a76c06ee3461b56f7ac69a650e6fbfcc..44af65d6a4e0315b31508cab3183c0142ff0d17c 100644
|
|
--- a/test/es-module/test-esm-windows.js
|
|
+++ b/test/es-module/test-esm-windows.js
|
|
@@ -15,9 +15,8 @@ const imp = (file) => {
|
|
};
|
|
|
|
(async () => {
|
|
- const tmp = tmpdir.path;
|
|
- await fs.mkdir(tmp).catch(() => {});
|
|
- const rel = (file) => path.join(tmp, file);
|
|
+ tmpdir.refresh();
|
|
+ const rel = (file) => path.join(tmpdir.path, file);
|
|
|
|
{ // Load a single script
|
|
const file = rel('con.mjs');
|