diff options
Diffstat (limited to 'cli/tests/workers_startup_bench.ts')
-rw-r--r-- | cli/tests/workers_startup_bench.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tests/workers_startup_bench.ts b/cli/tests/workers_startup_bench.ts index 60c15a4b1..a25dc8ff7 100644 --- a/cli/tests/workers_startup_bench.ts +++ b/cli/tests/workers_startup_bench.ts @@ -4,7 +4,10 @@ const workerCount = 50; async function bench(): Promise<void> { const workers: Worker[] = []; for (let i = 1; i <= workerCount; ++i) { - const worker = new Worker("./subdir/bench_worker.ts", { type: "module" }); + const worker = new Worker( + new URL("subdir/bench_worker.ts", import.meta.url).href, + { type: "module" } + ); const promise = new Promise((resolve): void => { worker.onmessage = (e): void => { if (e.data.cmdId === 0) resolve(); |