Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FlyingFox/Tests/WebSocket/AsyncStream+WSFrameTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct WSFrameSequenceTests {
var iterator = frames?.makeAsyncIterator()

#expect(
try await iterator?.next() == .fish
await iterator?.next() == .fish
)
#expect(terminated.withLock { !$0 })

Expand Down
6 changes: 3 additions & 3 deletions FlyingFox/Tests/WebSocket/WSHandlerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct WSHandlerTests {

var iterator = frames.makeAsyncIterator()
#expect(
try await iterator.next() == .pong
await iterator.next() == .pong
)
}

Expand Down Expand Up @@ -222,7 +222,7 @@ struct WSHandlerTests {

var iterator = frames.makeAsyncIterator()
#expect(
try await iterator.next() == .make(fin: true, opcode: .text, payload: "Hello".data(using: .utf8)!)
await iterator.next() == .make(fin: true, opcode: .text, payload: "Hello".data(using: .utf8)!)
)
try await Task.sleep(seconds: 0.05)
// Besides the frame received, 2 wait in the buffer and 1 waits for space.
Expand Down Expand Up @@ -271,7 +271,7 @@ struct WSHandlerTests {

var iterator = frames.makeAsyncIterator()
#expect(
try await iterator.next() == .make(fin: true, opcode: .text, payload: "Hello".data(using: .utf8)!)
await iterator.next() == .make(fin: true, opcode: .text, payload: "Hello".data(using: .utf8)!)
)
}
}
Expand Down
Loading