Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 25, 2024
1 parent f83b7d1 commit 34b5305
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Networking/Tests/NetworkingTests/PeerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct PeerTests {

typealias EphemeralHandler = MockEphemeralStreamHandler
}

@Test
func connectionRotationStrategy() async throws {
var peers: [Peer<MockStreamHandler>] = []
Expand Down Expand Up @@ -193,9 +193,9 @@ struct PeerTests {
receivedCount += await handler.receivedData.count
}
#expect(receivedCount == PeerSettings.defaultSettings.maxBuilderConnections)
}
@Test
}

@Test
func mockHandshakeFailure() async throws {
let mockPeerTest = try MockPeerEventTests()
let serverHandler = MockPeerEventTests.MockPeerEventHandler(
Expand Down Expand Up @@ -287,7 +287,6 @@ struct PeerTests {
#expect(connection1.isClosed == true)
}


@Test
func reopenUpStream() async throws {
let handler2 = MockPresentStreamHandler()
Expand Down

0 comments on commit 34b5305

Please sign in to comment.