Skip to content

Commit 158f6ec

Browse files
committed
fix retry_manager test
1 parent d442970 commit 158f6ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sdk/src/light_push/retry_manager.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe("RetryManager", () => {
139139
throw new Error(ProtocolError.NO_PEER_AVAILABLE);
140140
});
141141

142-
await (retryManager as any)["taskExecutor"]({
142+
await (retryManager as RetryManager)["taskExecutor"]({
143143
callback: errorCallback,
144144
maxAttempts: 1,
145145
routingInfo: TestRoutingInfo
@@ -149,7 +149,7 @@ describe("RetryManager", () => {
149149
expect(
150150
(peerManager.renewPeer as sinon.SinonSpy).calledWith(mockPeerId, {
151151
protocol: Protocols.LightPush,
152-
routingInfo: TestRoutingInfo
152+
pubsubTopic: TestRoutingInfo.pubsubTopic
153153
})
154154
).to.be.true;
155155
});

0 commit comments

Comments
 (0)