From 1cc9f59bb040921fed4e33f5f8afe27295f86428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 15 Jan 2023 12:11:25 +0000 Subject: [PATCH] fixup: clear timeout --- test/fixtures/es-module-loaders/hook-resolve-type.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fixtures/es-module-loaders/hook-resolve-type.mjs b/test/fixtures/es-module-loaders/hook-resolve-type.mjs index c341cbf880cacc..11007a0cb2e83c 100644 --- a/test/fixtures/es-module-loaders/hook-resolve-type.mjs +++ b/test/fixtures/es-module-loaders/hook-resolve-type.mjs @@ -17,8 +17,9 @@ export function globalPreload({ port }) { // Artificial timeout to keep the event loop alive. // https://bugs.chromium.org/p/v8/issues/detail?id=13238 // TODO(targos) Remove when V8 issue is resolved. - setTimeout(() => {}, 100); + const timeout = setTimeout(() => {}, 1_000); await Atomics.waitAsync(int32, 0, 0).value; + clearTimeout(timeout); return receiveMessageOnPort(port).message; }; `;