diff --git a/.gitignore b/.gitignore index 7b5308ac1..dbf1d97a5 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ build/ *.exe *.dll .vscode/ +.idea/ .DS_Store tests/pubsub/testgossipsub examples/*.md diff --git a/tests/pubsub/testgossipsub2.nim b/tests/pubsub/testgossipsub2.nim index ffc5c24e4..18582028a 100644 --- a/tests/pubsub/testgossipsub2.nim +++ b/tests/pubsub/testgossipsub2.nim @@ -7,6 +7,12 @@ # This file may not be copied, modified, or distributed except according to # those terms. + ) + await GossipSub(nodes[1]).addDirectPeer( + nodes[2].switch.peerInfo.peerId, nodes[2].switch.peerInfo.addrs + ) + await GossipSub(nodes[2]).addDirectPeer( + nodes[1].switch.peerInfo.peerId, nodes[1].switch.peerInfo.addrs {.used.} import sequtils, options, tables, sets @@ -178,12 +184,6 @@ suite "GossipSub": await GossipSub(nodes[1]).addDirectPeer( nodes[0].switch.peerInfo.peerId, nodes[0].switch.peerInfo.addrs ) - await GossipSub(nodes[1]).addDirectPeer( - nodes[2].switch.peerInfo.peerId, nodes[2].switch.peerInfo.addrs - ) - await GossipSub(nodes[2]).addDirectPeer( - nodes[1].switch.peerInfo.peerId, nodes[1].switch.peerInfo.addrs - ) var handlerFut = newFuture[void]() proc handler(topic: string, data: seq[byte]) {.async.} =