ci: wait 100ms after go-waku seems ready as it is sometimes not

This commit is contained in:
fryorcraken.eth 2022-08-25 14:40:25 +10:00
parent 2cb46b9924
commit def951e4ac
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import { WakuMessage } from "../lib/waku_message";
import * as proto from "../proto/message"; import * as proto from "../proto/message";
import { existsAsync, mkdirAsync, openAsync } from "./async_fs"; import { existsAsync, mkdirAsync, openAsync } from "./async_fs";
import { delay } from "./delay";
import waitForLine from "./log_file"; import waitForLine from "./log_file";
const dbg = debug("waku:nwaku"); const dbg = debug("waku:nwaku");
@ -181,6 +182,7 @@ export class Nwaku {
dbg(`Waiting to see '${NODE_READY_LOG_LINE}' in nwaku logs`); dbg(`Waiting to see '${NODE_READY_LOG_LINE}' in nwaku logs`);
await this.waitForLog(NODE_READY_LOG_LINE, 15000); await this.waitForLog(NODE_READY_LOG_LINE, 15000);
if (process.env.CI) await delay(100);
dbg("nwaku node has been started"); dbg("nwaku node has been started");
} }