Skip to content

Commit

Permalink
De-async the host start func too
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed May 9, 2024
1 parent 820d285 commit 204ba7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/testRunner/parallel/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import * as ts from "../_namespaces/ts.js";
import * as Utils from "../_namespaces/Utils.js";

export async function start(importTests: () => Promise<unknown>) {
export function start(importTests: () => Promise<unknown>) {
const Mocha = require("mocha") as typeof import("mocha");
const Base = Mocha.reporters.Base;
const color = Base.color;
Expand Down Expand Up @@ -656,6 +656,5 @@ export async function start(importTests: () => Promise<unknown>) {
shimNoopTestInterface(global);
}

await importTests();
setTimeout(() => startDelayed(perfData, totalCost), 0);
importTests().then(() => startDelayed(perfData, totalCost));
}

0 comments on commit 204ba7a

Please sign in to comment.