fix(test): compare peer ids using string format

This commit is contained in:
Franck Royer 2022-07-25 16:53:46 +10:00 committed by fryorcraken.eth
parent 991a1cf747
commit a3e6850b2f
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 3 additions and 1 deletions

View File

@ -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 () {