Skip to content

Commit

Permalink
Fix failing build for test (#2824)
Browse files Browse the repository at this point in the history
Co-authored-by: Ayush Garg <[email protected]>
  • Loading branch information
ayush1794 and Ayush Garg authored Aug 5, 2024
1 parent ba62457 commit 27cab33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/NIOPosixTests/StreamChannelsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class StreamChannelTest: XCTestCase {

// We will immediately send exactly the amount of data that fits in the receiver's receive buffer.
let receiveBufferSize = Int(
(try? receiver.getOption(.socketOption(.so_rcvbuf)).wait()) ?? 8192
(try? receiver.getOption(ChannelOptions.socketOption(.so_rcvbuf)).wait()) ?? 8192
)
var buffer = sender.allocator.buffer(capacity: receiveBufferSize)
buffer.writeBytes(Array(repeating: UInt8(ascii: "X"), count: receiveBufferSize))
Expand Down

0 comments on commit 27cab33

Please sign in to comment.