Skip to content

Commit

Permalink
removing nodesFut
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Aug 1, 2024
1 parent ad548cf commit 00fb971
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/pubsub/testgossipsub.nim
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@ suite "GossipSub":
let obs0 = PubSubObserver(onSend: onSend)
let obs1 = PubSubObserver(onRecv: onRecv, onValidated: onValidated)

let
nodes = generateNodes(2, gossip = true)
# start switches
nodesFut = await allFinished(nodes[0].switch.start(), nodes[1].switch.start())
let nodes = generateNodes(2, gossip = true)
# start switches
discard await allFinished(nodes[0].switch.start(), nodes[1].switch.start())

await subscribeNodes(nodes)

Expand Down Expand Up @@ -278,8 +277,6 @@ suite "GossipSub":

await allFuturesThrowing(nodes[0].switch.stop(), nodes[1].switch.stop())

await allFuturesThrowing(nodesFut.concat())

asyncTest "GossipSub unsub - resub faster than backoff":
var handlerFut = newFuture[bool]()
proc handler(topic: string, data: seq[byte]) {.async.} =
Expand Down

0 comments on commit 00fb971

Please sign in to comment.