Skip to content

Commit d968d10

Browse files
committed
chore: update tests
1 parent 8dfdb5b commit d968d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/AWSAppSyncApolloExtensionsTests/Authorizers/IAMAuthorizerTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class IAMAuthorizerTests: XCTestCase {
1919
func testGetHttpAuthorizationHeaders() async throws {
2020
let headers = try await authorizer.getHttpAuthorizationHeaders(request: APIKeyAuthorizerTests.urlRequest)
2121
XCTAssertEqual(headers.count, 1)
22-
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.urlRequest.url?.host())
22+
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.urlRequest.url?.host)
2323
}
2424

2525
func testGetWebsocketConnectionHeaders() async throws {
@@ -29,7 +29,7 @@ final class IAMAuthorizerTests: XCTestCase {
2929
XCTAssertEqual(headers["Accept"], "application/json, text/javascript")
3030
XCTAssertEqual(headers["Content-Encoding"], "amz-1.0")
3131
XCTAssertEqual(headers["Content-Type"], "application/json; charset=UTF-8")
32-
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.endpoint.host())
32+
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.endpoint.host)
3333
}
3434

3535
func testGetWebSocketSubscriptionPayload() async throws {
@@ -39,6 +39,6 @@ final class IAMAuthorizerTests: XCTestCase {
3939
XCTAssertEqual(headers["Accept"], "application/json, text/javascript")
4040
XCTAssertEqual(headers["Content-Encoding"], "amz-1.0")
4141
XCTAssertEqual(headers["Content-Type"], "application/json; charset=UTF-8")
42-
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.endpoint.host())
42+
XCTAssertEqual(headers["Host"], APIKeyAuthorizerTests.endpoint.host)
4343
}
4444
}

0 commit comments

Comments
 (0)