From 2a7d72be14a661ab1f27addc761842d14f60716a Mon Sep 17 00:00:00 2001 From: Danish Arora <35004822+danisharora099@users.noreply.github.com> Date: Wed, 8 Feb 2023 11:09:52 +0530 Subject: [PATCH] chore: decrease delay on the peer-exchange tests (#1141) * decrease timeouts for peer-exchange tests * reset dns test timeout --- packages/tests/tests/peer_exchange.node.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/tests/tests/peer_exchange.node.spec.ts b/packages/tests/tests/peer_exchange.node.spec.ts index d20ce6e477..1dc194888d 100644 --- a/packages/tests/tests/peer_exchange.node.spec.ts +++ b/packages/tests/tests/peer_exchange.node.spec.ts @@ -28,7 +28,7 @@ describe("Peer Exchange", () => { }); it("Auto discovery", async function () { - this.timeout(120_000); + this.timeout(60_000); waku = await createLightNode({ libp2p: { @@ -40,7 +40,8 @@ describe("Peer Exchange", () => { }); await waku.start(); - await delay(100000); + // we want to ensure that there is enough time for discv5 to discover peers + await delay(40000); await waitForRemotePeer(waku, [Protocols.PeerExchange]); const pxPeers = await waku.peerExchange.peers(); @@ -48,7 +49,7 @@ describe("Peer Exchange", () => { }); it("Manual query on test fleet", async function () { - this.timeout(150_000); + this.timeout(60_000); const waku = await createLightNode({ libp2p: {