From 463e66986149a4b8db1834218e5a441bac2cb3d8 Mon Sep 17 00:00:00 2001 From: Marat Al Date: Mon, 25 Sep 2023 14:41:27 +0200 Subject: [PATCH] In Xcode 15 XCTAssertEqual(request.httpMethod, "patch") fails with Optional("PATCH")") is not equal to ("Optional("patch"). But on CI in Xcode 14.2 it fails with opposite message Optional("patch")") is not equal to ("Optional("PATCH"). Thus to satisfy both Xcodes I've forced to use uppercase in this assertion. --- Test/Tests/RestClientTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/Tests/RestClientTests.swift b/Test/Tests/RestClientTests.swift index 3ee351cd2..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") }