From 1bbb129d0477ccb08feb1f9a77cb92948fdbe591 Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Sat, 19 Jul 2025 17:19:58 +1000 Subject: [PATCH] fix relay test --- packages/tests/tests/wait_for_remote_peer.node.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/tests/tests/wait_for_remote_peer.node.spec.ts b/packages/tests/tests/wait_for_remote_peer.node.spec.ts index 0811fc069c..55e15160b3 100644 --- a/packages/tests/tests/wait_for_remote_peer.node.spec.ts +++ b/packages/tests/tests/wait_for_remote_peer.node.spec.ts @@ -2,6 +2,7 @@ import type { LightNode, RelayNode } from "@waku/interfaces"; import { Protocols } from "@waku/interfaces"; import { createRelayNode } from "@waku/relay"; import { createLightNode } from "@waku/sdk"; +import { formatPubsubTopic } from "@waku/utils"; import { expect } from "chai"; import { @@ -255,12 +256,12 @@ describe("Wait for remote peer", function () { expect(peers.includes(nimPeerId as string)).to.be.true; }); - it("Privacy Node - default protocol", async function () { + it("Relay Node - default protocol", async function () { this.timeout(20_000); - [nwaku, waku1] = await runRelayNodes(this, DefaultTestNetworkConfig); + [nwaku, waku1] = await runRelayNodes(this, { clusterId: 0 }, [0]); const multiAddrWithId = await nwaku.getMultiaddrWithId(); - const peers = waku1.relay.getMeshPeers(DefaultTestRoutingInfo.pubsubTopic); + const peers = waku1.relay.getMeshPeers(formatPubsubTopic(0, 0)); const nimPeerId = multiAddrWithId.getPeerId();