From 380ba6987a9fa38d8b1f815dcad549a23117b1b6 Mon Sep 17 00:00:00 2001 From: Danish Arora <35004822+danisharora099@users.noreply.github.com> Date: Mon, 30 Jan 2023 11:29:12 +0530 Subject: [PATCH] disable tests connecting to test fleet on the CI (#1138) --- packages/tests/tests/peer_exchange.node.spec.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/tests/tests/peer_exchange.node.spec.ts b/packages/tests/tests/peer_exchange.node.spec.ts index 1629c496e3..d20ce6e477 100644 --- a/packages/tests/tests/peer_exchange.node.spec.ts +++ b/packages/tests/tests/peer_exchange.node.spec.ts @@ -14,6 +14,15 @@ import { delay } from "../src/delay.js"; describe("Peer Exchange", () => { let waku: LightNode; + + before(async function () { + // skipping in CI as this test demonstrates Peer Exchange working with the test fleet + // but not with locally run nwaku nodes + if (process.env.CI) { + this.skip(); + } + }); + afterEach(async function () { !!waku && waku.stop().catch((e) => console.log("Waku failed to stop", e)); }); @@ -41,12 +50,6 @@ describe("Peer Exchange", () => { it("Manual query on test fleet", async function () { this.timeout(150_000); - // skipping in CI as this test demonstrates Peer Exchange working with the test fleet - // but not with locally run nwaku nodes - if (process.env.ci) { - this.skip(); - } - const waku = await createLightNode({ libp2p: { peerDiscovery: [