diff --git a/Test/Tests/RestClientTests.swift b/Test/Tests/RestClientTests.swift index 6d59c073c..11440728d 100644 --- a/Test/Tests/RestClientTests.swift +++ b/Test/Tests/RestClientTests.swift @@ -1822,7 +1822,7 @@ class RestClientTests: XCTestCase { let url = try XCTUnwrap(request.url, "No request url found") let acceptHeaderValue = try XCTUnwrap(request.allHTTPHeaderFields?["Accept"], "Accept HTTP Header is missing") - XCTAssertEqual(request.httpMethod, "PATCH") + XCTAssertEqual(request.httpMethod!.uppercased(), "PATCH") XCTAssertEqual(url.absoluteString, "https://rest.ably.io:443/feature?foo=1") XCTAssertEqual(acceptHeaderValue, "application/x-msgpack,application/json") }