chore: decrease delay on the peer-exchange tests (#1141)

* decrease timeouts for peer-exchange tests

* reset dns test timeout
This commit is contained in:
Danish Arora 2023-02-08 11:09:52 +05:30 committed by GitHub
parent c0ca308502
commit 2a7d72be14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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: {