Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 28, 2024
1 parent 7f82a22 commit 3df70b1
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 @@ -165,8 +165,8 @@ struct PeerTests {
let con = try peer.connect(to: centerPeer.listenAddress(), role: .builder)
try await con.ready()
}
// Simulate close connections 5~8s
try? await Task.sleep(for: .milliseconds(8000))
// Simulate close connections 5~10s
try? await Task.sleep(for: .milliseconds(10000))
centerPeer.broadcast(kind: .uniqueA, message: .init(kind: .uniqueA, data: Data("connection rotation strategy".utf8)))
try? await Task.sleep(for: .milliseconds(1000))
var receivedCount = 0
Expand Down

0 comments on commit 3df70b1

Please sign in to comment.