fix retry_manager test

This commit is contained in:
fryorcraken 2025-07-21 15:02:26 +10:00
parent d4429702c2
commit 158f6ecf98
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -139,7 +139,7 @@ describe("RetryManager", () => {
throw new Error(ProtocolError.NO_PEER_AVAILABLE); throw new Error(ProtocolError.NO_PEER_AVAILABLE);
}); });
await (retryManager as any)["taskExecutor"]({ await (retryManager as RetryManager)["taskExecutor"]({
callback: errorCallback, callback: errorCallback,
maxAttempts: 1, maxAttempts: 1,
routingInfo: TestRoutingInfo routingInfo: TestRoutingInfo
@ -149,7 +149,7 @@ describe("RetryManager", () => {
expect( expect(
(peerManager.renewPeer as sinon.SinonSpy).calledWith(mockPeerId, { (peerManager.renewPeer as sinon.SinonSpy).calledWith(mockPeerId, {
protocol: Protocols.LightPush, protocol: Protocols.LightPush,
routingInfo: TestRoutingInfo pubsubTopic: TestRoutingInfo.pubsubTopic
}) })
).to.be.true; ).to.be.true;
}); });