mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
fix retry_manager test
This commit is contained in:
parent
d4429702c2
commit
158f6ecf98
@ -139,7 +139,7 @@ describe("RetryManager", () => {
|
||||
throw new Error(ProtocolError.NO_PEER_AVAILABLE);
|
||||
});
|
||||
|
||||
await (retryManager as any)["taskExecutor"]({
|
||||
await (retryManager as RetryManager)["taskExecutor"]({
|
||||
callback: errorCallback,
|
||||
maxAttempts: 1,
|
||||
routingInfo: TestRoutingInfo
|
||||
@ -149,7 +149,7 @@ describe("RetryManager", () => {
|
||||
expect(
|
||||
(peerManager.renewPeer as sinon.SinonSpy).calledWith(mockPeerId, {
|
||||
protocol: Protocols.LightPush,
|
||||
routingInfo: TestRoutingInfo
|
||||
pubsubTopic: TestRoutingInfo.pubsubTopic
|
||||
})
|
||||
).to.be.true;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user