@@ -3091,13 +3091,13 @@ class HTTPClientTests: XCTestCase {
30913091 XCTAssertNoThrow ( try future. wait ( ) )
30923092 XCTAssertNil ( try delegate. next ( ) . wait ( ) )
30933093 }
3094-
3094+
30953095 func testResponseAccumulatorMaxBodySizeLimitExceedingWithContentLength( ) throws {
30963096 let httpBin = HTTPBin ( . http1_1( ssl: false , compress: false ) ) { _ in HTTPEchoHandler ( ) }
30973097 defer { XCTAssertNoThrow ( try httpBin. shutdown ( ) ) }
3098-
3098+
30993099 let body = ByteBuffer ( bytes: 0 ..< 11 )
3100-
3100+
31013101 var request = try Request ( url: httpBin. baseURL)
31023102 request. body = . byteBuffer( body)
31033103 let delegate = ResponseAccumulator ( request: request)
@@ -3109,13 +3109,13 @@ class HTTPClientTests: XCTestCase {
31093109 XCTAssertTrue ( error is ResponseAccumulator . ResponseTooBigError , " unexpected error \( error) " )
31103110 }
31113111 }
3112-
3112+
31133113 func testResponseAccumulatorMaxBodySizeLimitNotExceedingWithContentLength( ) throws {
31143114 let httpBin = HTTPBin ( . http1_1( ssl: false , compress: false ) ) { _ in HTTPEchoHandler ( ) }
31153115 defer { XCTAssertNoThrow ( try httpBin. shutdown ( ) ) }
3116-
3116+
31173117 let body = ByteBuffer ( bytes: 0 ..< 10 )
3118-
3118+
31193119 var request = try Request ( url: httpBin. baseURL)
31203120 request. body = . byteBuffer( body)
31213121 let delegate = ResponseAccumulator ( request: request)
@@ -3124,16 +3124,16 @@ class HTTPClientTests: XCTestCase {
31243124 request: request,
31253125 delegate: delegate
31263126 ) . wait ( )
3127-
3127+
31283128 XCTAssertEqual ( response. body, body)
31293129 }
3130-
3130+
31313131 func testResponseAccumulatorMaxBodySizeLimitExceedingWithTransferEncodingChuncked( ) throws {
31323132 let httpBin = HTTPBin ( . http1_1( ssl: false , compress: false ) ) { _ in HTTPEchoHandler ( ) }
31333133 defer { XCTAssertNoThrow ( try httpBin. shutdown ( ) ) }
3134-
3134+
31353135 let body = ByteBuffer ( bytes: 0 ..< 11 )
3136-
3136+
31373137 var request = try Request ( url: httpBin. baseURL)
31383138 request. body = . stream { writer in
31393139 writer. write ( . byteBuffer( body) )
@@ -3147,13 +3147,13 @@ class HTTPClientTests: XCTestCase {
31473147 XCTAssertTrue ( error is ResponseAccumulator . ResponseTooBigError , " unexpected error \( error) " )
31483148 }
31493149 }
3150-
3150+
31513151 func testResponseAccumulatorMaxBodySizeLimitNotExceedingWithTransferEncodingChuncked( ) throws {
31523152 let httpBin = HTTPBin ( . http1_1( ssl: false , compress: false ) ) { _ in HTTPEchoHandler ( ) }
31533153 defer { XCTAssertNoThrow ( try httpBin. shutdown ( ) ) }
3154-
3154+
31553155 let body = ByteBuffer ( bytes: 0 ..< 10 )
3156-
3156+
31573157 var request = try Request ( url: httpBin. baseURL)
31583158 request. body = . stream { writer in
31593159 writer. write ( . byteBuffer( body) )
@@ -3164,7 +3164,7 @@ class HTTPClientTests: XCTestCase {
31643164 request: request,
31653165 delegate: delegate
31663166 ) . wait ( )
3167-
3167+
31683168 XCTAssertEqual ( response. body, body)
31693169 }
31703170
0 commit comments