Skip to content

Commit 2a7d72b

Browse files
chore: decrease delay on the peer-exchange tests (#1141)
* decrease timeouts for peer-exchange tests * reset dns test timeout
1 parent c0ca308 commit 2a7d72b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/tests/tests/peer_exchange.node.spec.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("Peer Exchange", () => {
2828
});
2929

3030
it("Auto discovery", async function () {
31-
this.timeout(120_000);
31+
this.timeout(60_000);
3232

3333
waku = await createLightNode({
3434
libp2p: {
@@ -40,15 +40,16 @@ describe("Peer Exchange", () => {
4040
});
4141

4242
await waku.start();
43-
await delay(100000);
43+
// we want to ensure that there is enough time for discv5 to discover peers
44+
await delay(40000);
4445

4546
await waitForRemotePeer(waku, [Protocols.PeerExchange]);
4647
const pxPeers = await waku.peerExchange.peers();
4748
expect(pxPeers.length).to.be.greaterThan(0);
4849
});
4950

5051
it("Manual query on test fleet", async function () {
51-
this.timeout(150_000);
52+
this.timeout(60_000);
5253

5354
const waku = await createLightNode({
5455
libp2p: {

0 commit comments

Comments
 (0)