mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-04 06:43: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);
|
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;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user