Skip to content

Commit

Permalink
chore: lint update
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya authored and darshankabariya committed Jan 20, 2025
1 parent c625d14 commit eef0d11
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_wakunode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,20 @@ suite "WakuNode":
var otherNodes: seq[WakuNode] = @[]

# Create and start 20 other nodes
for i in 0..<maxConnections + 1:
for i in 0 ..< maxConnections + 1:
let
nodeKey = generateSecp256k1Key()
port = 60012 + i * 2 # Ensure unique ports for each node
port = 60012 + i * 2 # Ensure unique ports for each node
node = newTestWakuNode(nodeKey, parseIpAddress("127.0.0.1"), Port(port))
await node.start()
await node.mountRelay()
otherNodes.add(node)

# Connect all other nodes to node1
for node in otherNodes:
discard await node1.peerManager.connectPeer(node.switch.peerInfo.toRemotePeerInfo())
await sleepAsync(2.seconds) # Small delay to avoid hammering the connection process
discard
await node1.peerManager.connectPeer(node.switch.peerInfo.toRemotePeerInfo())
await sleepAsync(2.seconds) # Small delay to avoid hammering the connection process

# Check that the number of connections matches the maxConnections
check:
Expand Down

0 comments on commit eef0d11

Please sign in to comment.