From 00fb97106507ce4c1fd82a9e5a4dbee4c3e6c68f Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Thu, 1 Aug 2024 16:32:54 +0300 Subject: [PATCH] removing nodesFut --- tests/pubsub/testgossipsub.nim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/pubsub/testgossipsub.nim b/tests/pubsub/testgossipsub.nim index 9ba41b30a5..9f059b8f8a 100644 --- a/tests/pubsub/testgossipsub.nim +++ b/tests/pubsub/testgossipsub.nim @@ -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) @@ -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.} =