From e370c870f2fc6b01d22b454a86c7faf9758a7272 Mon Sep 17 00:00:00 2001 From: Franck Date: Fri, 1 Apr 2022 12:59:59 +1100 Subject: [PATCH] Nwaku v0.9 is taking more time to start-up --- src/lib/waku_light_push/index.node.spec.ts | 4 ++-- src/lib/waku_store/index.node.spec.ts | 16 ++++++++-------- src/test_utils/nwaku.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/waku_light_push/index.node.spec.ts b/src/lib/waku_light_push/index.node.spec.ts index 15ca419955..8bbd0be156 100644 --- a/src/lib/waku_light_push/index.node.spec.ts +++ b/src/lib/waku_light_push/index.node.spec.ts @@ -20,7 +20,7 @@ describe("Waku Light Push [node only]", () => { }); it("Push successfully", async function () { - this.timeout(5_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ lightpush: true }); @@ -53,7 +53,7 @@ describe("Waku Light Push [node only]", () => { }); it("Push on custom pubsub topic", async function () { - this.timeout(5_000); + this.timeout(15_000); const customPubSubTopic = "/waku/2/custom-dapp/proto"; diff --git a/src/lib/waku_store/index.node.spec.ts b/src/lib/waku_store/index.node.spec.ts index 6be1261f45..0d907ad5f2 100644 --- a/src/lib/waku_store/index.node.spec.ts +++ b/src/lib/waku_store/index.node.spec.ts @@ -32,7 +32,7 @@ describe("Waku Store", () => { }); it("Retrieves history", async function () { - this.timeout(5_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true }); @@ -62,7 +62,7 @@ describe("Waku Store", () => { }); it("Retrieves history using callback", async function () { - this.timeout(10_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true }); @@ -101,7 +101,7 @@ describe("Waku Store", () => { }); it("Retrieval aborts when callback returns true", async function () { - this.timeout(5_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true }); @@ -139,7 +139,7 @@ describe("Waku Store", () => { }); it("Retrieves all historical elements in chronological order through paging", async function () { - this.timeout(5_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true }); @@ -175,7 +175,7 @@ describe("Waku Store", () => { }); it("Retrieves history using custom pubsub topic", async function () { - this.timeout(5_000); + this.timeout(15_000); const customPubSubTopic = "/waku/2/custom-dapp/proto"; nwaku = new Nwaku(makeLogFileName(this)); @@ -213,7 +213,7 @@ describe("Waku Store", () => { }); it("Retrieves history with asymmetric & symmetric encrypted messages", async function () { - this.timeout(10_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true, lightpush: true }); @@ -322,7 +322,7 @@ describe("Waku Store", () => { }); it("Retrieves history with asymmetric & symmetric encrypted messages on different content topics", async function () { - this.timeout(10_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true, lightpush: true }); @@ -443,7 +443,7 @@ describe("Waku Store", () => { }); it("Retrieves history using start and end time", async function () { - this.timeout(5_000); + this.timeout(15_000); nwaku = new Nwaku(makeLogFileName(this)); await nwaku.start({ persistMessages: true }); diff --git a/src/test_utils/nwaku.ts b/src/test_utils/nwaku.ts index ddb7ea903a..2530316965 100644 --- a/src/test_utils/nwaku.ts +++ b/src/test_utils/nwaku.ts @@ -169,7 +169,7 @@ export class Nwaku { }); dbg("Waiting to see 'Node setup complete' in nwaku logs"); - await this.waitForLog("Node setup complete", 9000); + await this.waitForLog("Node setup complete", 15000); dbg("nwaku node has been started"); }