diff --git a/src/lib/waku_relay/index.node.spec.ts b/src/lib/waku_relay/index.node.spec.ts index 2cc09fd097..1670c1f9cb 100644 --- a/src/lib/waku_relay/index.node.spec.ts +++ b/src/lib/waku_relay/index.node.spec.ts @@ -367,7 +367,9 @@ describe("Waku Relay [node only]", () => { } const nimPeerId = await nwaku.getPeerId(); - expect(subscribers).to.contain(nimPeerId.toString()); + expect(subscribers.map((p) => p.toString())).to.contain( + nimPeerId.toString() + ); }); it("Publishes to nwaku", async function () {