mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-16 23:06:39 +00:00
Merge branch 'block6Test' into block6Test2
This commit is contained in:
commit
567a456200
@ -157,7 +157,7 @@ suite "GossipSub Topic Membership Tests":
|
||||
|
||||
for topic in topicNames:
|
||||
if gossipSub.topics.len < gossipSub.topicsHigh:
|
||||
gossipSub.PubSub.subscribe(
|
||||
gossipSub.subscribe(
|
||||
topic,
|
||||
proc(topic: string, data: seq[byte]): Future[void] {.async.} =
|
||||
discard
|
||||
@ -172,7 +172,6 @@ suite "GossipSub Topic Membership Tests":
|
||||
doAssert gossipSub.topics.len <= gossipSub.topicsHigh
|
||||
doAssert gossipSub.topics.len == gossipSub.topicsHigh
|
||||
|
||||
# Clean up by closing connections and stopping the GossipSub switch
|
||||
await allFuturesThrowing(conns.mapIt(it.close()))
|
||||
await gossipSub.switch.stop()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user