Skip to content

Commit

Permalink
Now it fails on CI with 'XCTAssertEqual failed: ("Optional("patch")")…
Browse files Browse the repository at this point in the history
… is not equal to ("Optional("PATCH")")' vs failing locally before commit 028cde0 with

'XCTAssertEqual failed: ("Optional("PATCH")") is not equal to ("Optional("patch")")'. Just forcing uppercased then.
  • Loading branch information
maratal committed Sep 15, 2023
1 parent 028cde0 commit f2942ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/Tests/RestClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit f2942ec

Please sign in to comment.