Skip to content

Commit c69af44

Browse files
author
Gayathri Sairamkrishnan
committed
Fix unit test
1 parent ce190bc commit c69af44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/OpenAPIRuntimeTests/Interface/Test_ErrorHandlingMiddleware.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class Test_ErrorHandlingMiddlewareTests: XCTestCase {
4343
)
4444
XCTAssertEqual(response.status, .badGateway)
4545
XCTAssertEqual(response.headerFields, [.contentType: "application/json"])
46-
XCTAssertEqual(responseBody, TEST_HTTP_BODY)
46+
XCTAssertEqual(responseBody, testHTTPBody)
4747
}
4848

4949
func testError_conformingToProtocolWithoutAllValues_convertedToResponse() async throws {
@@ -132,7 +132,7 @@ struct MockErrorMiddleware_Next: ServerMiddleware {
132132
struct ConvertibleError: Error, HTTPResponseConvertible {
133133
var httpStatus: HTTPTypes.HTTPResponse.Status = HTTPResponse.Status.badGateway
134134
var httpHeaderFields: HTTPFields = [.contentType: "application/json"]
135-
var httpBody: OpenAPIRuntime.HTTPBody? = TEST_HTTP_BODY
135+
var httpBody: OpenAPIRuntime.HTTPBody? = testHTTPBody
136136
}
137137

138138
struct PartialConvertibleError: Error, HTTPResponseConvertible {

0 commit comments

Comments
 (0)