mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-02-27 21:53:16 +00:00
fix compilation issue and enhance unit test validation
This commit is contained in:
parent
cc00ceffe0
commit
cffafca790
@ -47,6 +47,9 @@ suite "Waku Keepalive":
|
||||
break
|
||||
await sleepAsync(100.millis)
|
||||
|
||||
assert node1.peerManager.isPeerConnected(node2.switch.peerInfo.peerId),
|
||||
"could not establish connection between nodes"
|
||||
|
||||
let healthMonitor = NodeHealthMonitor()
|
||||
healthMonitor.setNodeToHealthMonitor(node1)
|
||||
healthMonitor.startKeepalive(2.seconds).isOkOr:
|
||||
|
||||
@ -500,7 +500,7 @@ proc connectedPeers*(
|
||||
|
||||
return (inPeers, outPeers)
|
||||
|
||||
proc isPeerConnected*(pm: PeerManager, peerId: PeerId): bool
|
||||
proc isPeerConnected*(pm: PeerManager, peerId: PeerId): bool =
|
||||
let (inPeers, outPeers) = pm.connectedPeers()
|
||||
return inPeers.contains(peerId) or outPeers.contains(peerId)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user