Skip to content

Commit 044765e

Browse files
committed
swiftformat and linux tests
1 parent 34ad4a6 commit 044765e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ extension TaskHandler: ChannelDuplexHandler {
796796
assert(head.version == HTTPVersion(major: 1, minor: 1),
797797
"Sending a request in HTTP version \(head.version) which is unsupported by the above `if`")
798798

799-
800799
let contentLengths = head.headers[canonicalForm: "content-length"]
801800
assert(contentLengths.count <= 1)
802801

Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ internal struct HTTPResponseBuilder {
361361
}
362362
}
363363

364-
//let globalRequestCounter = NIOAtomic<Int>.makeAtomic(value: 0)
365-
//let globalConnectionCounter = NIOAtomic<Int>.makeAtomic(value: 0)
364+
// let globalRequestCounter = NIOAtomic<Int>.makeAtomic(value: 0)
365+
// let globalConnectionCounter = NIOAtomic<Int>.makeAtomic(value: 0)
366366

367367
internal struct RequestInfo: Codable {
368368
var data: String

Tests/AsyncHTTPClientTests/RequestValidationTests+XCTest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ extension RequestValidationTests {
3333
("testGET_HEAD_DELETE_CONNECTRequestCanHaveBody", testGET_HEAD_DELETE_CONNECTRequestCanHaveBody),
3434
("testInvalidHeaderFieldNames", testInvalidHeaderFieldNames),
3535
("testValidHeaderFieldNames", testValidHeaderFieldNames),
36+
("testMultipleContentLengthOnNilStreamLength", testMultipleContentLengthOnNilStreamLength),
3637
]
3738
}
3839
}

Tests/AsyncHTTPClientTests/RequestValidationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class RequestValidationTests: XCTestCase {
109109
var headers = HTTPHeaders([("Content-Length", "1"), ("Content-Length", "2")])
110110
var buffer = ByteBufferAllocator().buffer(capacity: 10)
111111
buffer.writeBytes([UInt8](repeating: 12, count: 10))
112-
let body: HTTPClient.Body = .stream() { writer in
112+
let body: HTTPClient.Body = .stream { writer in
113113
writer.write(.byteBuffer(buffer))
114114
}
115115
XCTAssertThrowsError(try headers.validate(method: .PUT, body: body))

0 commit comments

Comments
 (0)