Skip to content

Commit 601b2e4

Browse files
committed
fix XCTAssertEqual order for cohesion
1 parent 7433b55 commit 601b2e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ final class HTTPClientTests: XCTestCaseHTTPClientTestsBaseClass {
744744
return response
745745
}
746746

747-
XCTAssertEqual(response.head.status, .ok)
747+
XCTAssertEqual(.ok, response.head.status)
748748
XCTAssertEqual("50", response.head.headers.first(name: "content-length"))
749749

750750
XCTAssertEqual(50, response.totalBytes)
@@ -775,7 +775,7 @@ final class HTTPClientTests: XCTestCaseHTTPClientTestsBaseClass {
775775
return response
776776
}
777777

778-
XCTAssertEqual(response.head.status, .notFound)
778+
XCTAssertEqual(.notFound, response.head.status)
779779
XCTAssertFalse(response.head.headers.contains(name: "content-length"))
780780

781781
XCTAssertEqual(nil, response.totalBytes)

0 commit comments

Comments
 (0)