Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 4, 2024
1 parent d156214 commit 21e20a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Networking/Tests/NetworkingTests/MockPeerEventTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ final class MockPeerEventTests {
configuration: clientConfiguration
)
try clientConnection.connect(to: listenAddress)
let stream1 = try clientConnection.createStream()
try stream1.send(data: Data("test data 1".utf8))
try? await Task.sleep(for: .milliseconds(1000))

#expect(throws: Error.self) {
let stream1 = try clientConnection.createStream()
try stream1.send(data: Data("test data 1".utf8))
Expand Down

0 comments on commit 21e20a1

Please sign in to comment.