From d1d9198ea72386c882f2c916ce3726e223fef248 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Tue, 24 Sep 2024 19:24:00 +0530 Subject: [PATCH] chore: update tests --- packages/sdk/src/protocols/peer_manager.ts | 1 + packages/tests/tests/getPeers.spec.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/sdk/src/protocols/peer_manager.ts b/packages/sdk/src/protocols/peer_manager.ts index 3912e27bb6..d8ee60888b 100644 --- a/packages/sdk/src/protocols/peer_manager.ts +++ b/packages/sdk/src/protocols/peer_manager.ts @@ -19,6 +19,7 @@ export class PeerManager { private readonly log: Logger ) { this.healthManager = getHealthManager(); + this.healthManager.updateProtocolHealth(this.core.multicodec, 0); } public getWriteLockHolder(): string | null { diff --git a/packages/tests/tests/getPeers.spec.ts b/packages/tests/tests/getPeers.spec.ts index 629cf47781..dd0ba3ad5c 100644 --- a/packages/tests/tests/getPeers.spec.ts +++ b/packages/tests/tests/getPeers.spec.ts @@ -152,7 +152,8 @@ describe("getPeers", function () { for (const peer of allPeers) { connections.push({ status: "open", - remotePeer: peer.id + remotePeer: peer.id, + streams: [{ protocol: waku.lightPush.protocol.multicodec }] } as unknown as Connection); } return connections;