From c4512a08407788f3b0e4521a6831912b89239774 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 19 Oct 2021 14:03:44 +1100 Subject: [PATCH] Run live data test locally but not in CI Running in CI would mean the CI breaks if there are issues with the waku prod fleet. --- packages/status-communities/src/community.spec.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/status-communities/src/community.spec.ts b/packages/status-communities/src/community.spec.ts index e1ab10e..667914b 100644 --- a/packages/status-communities/src/community.spec.ts +++ b/packages/status-communities/src/community.spec.ts @@ -4,8 +4,15 @@ import { Waku } from "js-waku"; import { Community } from "./community"; import { CommunityDescription } from "./wire/community_description"; -describe("Community", () => { - it.skip("Retrieves community description For DappConnect Test from Waku prod fleet", async function () { +describe("Community live data", () => { + before(function () { + if (process.env.CI) { + // Skip live data test in CI + this.skip(); + } + }); + + it("Retrieves community description For DappConnect Test from Waku prod fleet", async function () { this.timeout(20000); const waku = await Waku.create({ bootstrap: true });