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; }; `;