Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Feb 9, 2024
1 parent 07cab43 commit 3ec2097
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/pubsub/testgossipsub.nim
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,12 @@ suite "GossipSub":
var gossip1: GossipSub = GossipSub(nodes[0])
var gossip2: GossipSub = GossipSub(nodes[1])

checkExpiring:
"foobar" in gossip1.gossipsub and
"foobar" in gossip2.gossipsub and
gossip1.mesh.hasPeerId("foobar", gossip2.peerInfo.peerId) and
not gossip1.fanout.hasPeerId("foobar", gossip2.peerInfo.peerId) and
gossip2.mesh.hasPeerId("foobar", gossip1.peerInfo.peerId) and
checkUntilTimeout:
"foobar" in gossip1.gossipsub
"foobar" in gossip2.gossipsub
gossip1.mesh.hasPeerId("foobar", gossip2.peerInfo.peerId)
not gossip1.fanout.hasPeerId("foobar", gossip2.peerInfo.peerId)
gossip2.mesh.hasPeerId("foobar", gossip1.peerInfo.peerId)
not gossip2.fanout.hasPeerId("foobar", gossip1.peerInfo.peerId)

await allFuturesThrowing(
Expand Down

0 comments on commit 3ec2097

Please sign in to comment.