Skip to content

Commit

Permalink
ci: wait 100ms after go-waku seems ready as it is sometimes not
Browse files Browse the repository at this point in the history
  • Loading branch information
fryorcraken committed Aug 25, 2022
1 parent 024a8f5 commit 4a89ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test_utils/nwaku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { WakuMessage } from "../lib/waku_message";
import * as proto from "../proto/message";

import { existsAsync, mkdirAsync, openAsync } from "./async_fs";
import { delay } from "./delay";
import waitForLine from "./log_file";

const dbg = debug("waku:nwaku");
Expand Down Expand Up @@ -181,6 +182,7 @@ export class Nwaku {

dbg(`Waiting to see '${NODE_READY_LOG_LINE}' in nwaku logs`);
await this.waitForLog(NODE_READY_LOG_LINE, 15000);
if (process.env.CI) await delay(100);
dbg("nwaku node has been started");
}

Expand Down

0 comments on commit 4a89ec2

Please sign in to comment.