mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-03-01 16:40:32 +00:00
fix test
This commit is contained in:
parent
3c8e2a3725
commit
f682bb9171
@ -509,12 +509,12 @@ suite "GossipSub":
|
|||||||
var gossip1: GossipSub = GossipSub(nodes[0])
|
var gossip1: GossipSub = GossipSub(nodes[0])
|
||||||
var gossip2: GossipSub = GossipSub(nodes[1])
|
var gossip2: GossipSub = GossipSub(nodes[1])
|
||||||
|
|
||||||
check:
|
checkExpiring:
|
||||||
"foobar" in gossip1.gossipsub
|
"foobar" in gossip1.gossipsub and
|
||||||
"foobar" in gossip2.gossipsub
|
"foobar" in gossip2.gossipsub and
|
||||||
gossip1.mesh.hasPeerId("foobar", gossip2.peerInfo.peerId)
|
gossip1.mesh.hasPeerId("foobar", gossip2.peerInfo.peerId) and
|
||||||
not gossip1.fanout.hasPeerId("foobar", gossip2.peerInfo.peerId)
|
not gossip1.fanout.hasPeerId("foobar", gossip2.peerInfo.peerId) and
|
||||||
gossip2.mesh.hasPeerId("foobar", gossip1.peerInfo.peerId)
|
gossip2.mesh.hasPeerId("foobar", gossip1.peerInfo.peerId) and
|
||||||
not gossip2.fanout.hasPeerId("foobar", gossip1.peerInfo.peerId)
|
not gossip2.fanout.hasPeerId("foobar", gossip1.peerInfo.peerId)
|
||||||
|
|
||||||
await allFuturesThrowing(
|
await allFuturesThrowing(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user