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.
This commit is contained in:
Franck Royer 2021-10-19 14:03:44 +11:00
parent 373603067c
commit c4512a0840
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 9 additions and 2 deletions

View File

@ -4,8 +4,15 @@ import { Waku } from "js-waku";
import { Community } from "./community"; import { Community } from "./community";
import { CommunityDescription } from "./wire/community_description"; import { CommunityDescription } from "./wire/community_description";
describe("Community", () => { describe("Community live data", () => {
it.skip("Retrieves community description For DappConnect Test from Waku prod fleet", async function () { 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); this.timeout(20000);
const waku = await Waku.create({ bootstrap: true }); const waku = await Waku.create({ bootstrap: true });