Skip to content

Commit

Permalink
fix benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Nov 4, 2020
1 parent 1d21bf5 commit 60db772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/tests/workers_startup_bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand All @@ -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();
};
Expand Down

0 comments on commit 60db772

Please sign in to comment.