Skip to content

Commit

Permalink
update peer test
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 14, 2024
1 parent 99acde2 commit 018fed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Networking/Tests/NetworkingTests/PeerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ struct PeerTests {
let con = try peer.connect(to: centerPeer.listenAddress(), role: .builder)
try await con.ready()
}
try? await Task.sleep(for: .milliseconds(2000))
centerPeer.broadcast(kind: .uniqueA, message: .init(kind: .uniqueA, data: Data("connection rotation strategy".utf8)))
try? await Task.sleep(for: .milliseconds(500))
try? await Task.sleep(for: .milliseconds(200))
var receivedCount = 0
for handler in handlers {
receivedCount += await handler.receivedData.count
}
print("recievedCount: \(receivedCount)")
#expect(receivedCount == PeerSettings.defaultSettings.maxBuilderConnections)
}

Expand Down

0 comments on commit 018fed5

Please sign in to comment.