Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces committed Mar 8, 2024
1 parent fbf7ec0 commit 4fc0409
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ export async function startGateway(mode?: string): Promise<Gateway> {
const wrapper = new Gateway(gateway, config.port);

await new Promise<void>((resolve, reject) => {
const timeout_ms = 60000;
const timeout = setTimeout(() => {
gateway.stdout?.removeListener("data", onData);
gateway.stderr?.removeListener("data", onData);
wrapper.stop();
reject(new Error(`Gateway failed to start in 10 seconds: ${output}`));
}, 10000);
reject(new Error(`Gateway failed to start in ${timeout_ms}ms: ${output}`));
}, timeout_ms);

let output = "";
const onData = (data: string) => {
Expand Down

0 comments on commit 4fc0409

Please sign in to comment.