diff options
Diffstat (limited to 'cli/tests/workers_startup_bench.ts')
-rw-r--r-- | cli/tests/workers_startup_bench.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/workers_startup_bench.ts b/cli/tests/workers_startup_bench.ts index 5213e24cd..0d58b7912 100644 --- a/cli/tests/workers_startup_bench.ts +++ b/cli/tests/workers_startup_bench.ts @@ -8,7 +8,7 @@ async function bench(): Promise<void> { new URL("subdir/bench_worker.ts", import.meta.url).href, { type: "module" }, ); - const promise = new Promise((resolve): void => { + const promise = new Promise<void>((resolve): void => { worker.onmessage = (e): void => { if (e.data.cmdId === 0) resolve(); }; @@ -19,7 +19,7 @@ async function bench(): Promise<void> { } console.log("Done creating workers closing workers!"); for (const worker of workers) { - const promise = new Promise((resolve): void => { + const promise = new Promise<void>((resolve): void => { worker.onmessage = (e): void => { if (e.data.cmdId === 3) resolve(); }; |