Nwaku v0.9 is taking more time to start-up

This commit is contained in:
Franck 2022-04-01 12:59:59 +11:00
parent dc90279905
commit 2511b7daec
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 11 additions and 11 deletions

View File

@ -20,7 +20,7 @@ describe("Waku Light Push [node only]", () => {
}); });
it("Push successfully", async function () { it("Push successfully", async function () {
this.timeout(5_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ lightpush: true }); await nwaku.start({ lightpush: true });
@ -53,7 +53,7 @@ describe("Waku Light Push [node only]", () => {
}); });
it("Push on custom pubsub topic", async function () { it("Push on custom pubsub topic", async function () {
this.timeout(5_000); this.timeout(15_000);
const customPubSubTopic = "/waku/2/custom-dapp/proto"; const customPubSubTopic = "/waku/2/custom-dapp/proto";

View File

@ -32,7 +32,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves history", async function () { it("Retrieves history", async function () {
this.timeout(5_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true }); await nwaku.start({ persistMessages: true });
@ -62,7 +62,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves history using callback", async function () { it("Retrieves history using callback", async function () {
this.timeout(10_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true }); await nwaku.start({ persistMessages: true });
@ -101,7 +101,7 @@ describe("Waku Store", () => {
}); });
it("Retrieval aborts when callback returns true", async function () { it("Retrieval aborts when callback returns true", async function () {
this.timeout(5_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true }); await nwaku.start({ persistMessages: true });
@ -139,7 +139,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves all historical elements in chronological order through paging", async function () { 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)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true }); await nwaku.start({ persistMessages: true });
@ -175,7 +175,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves history using custom pubsub topic", async function () { it("Retrieves history using custom pubsub topic", async function () {
this.timeout(5_000); this.timeout(15_000);
const customPubSubTopic = "/waku/2/custom-dapp/proto"; const customPubSubTopic = "/waku/2/custom-dapp/proto";
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
@ -213,7 +213,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves history with asymmetric & symmetric encrypted messages", async function () { it("Retrieves history with asymmetric & symmetric encrypted messages", async function () {
this.timeout(10_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true, lightpush: true }); 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 () { 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)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true, lightpush: true }); await nwaku.start({ persistMessages: true, lightpush: true });
@ -443,7 +443,7 @@ describe("Waku Store", () => {
}); });
it("Retrieves history using start and end time", async function () { it("Retrieves history using start and end time", async function () {
this.timeout(5_000); this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this)); nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true }); await nwaku.start({ persistMessages: true });

View File

@ -169,7 +169,7 @@ export class Nwaku {
}); });
dbg("Waiting to see 'Node setup complete' in nwaku logs"); 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"); dbg("nwaku node has been started");
} }