We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae14e9 commit 476c7ecCopy full SHA for 476c7ec
Tests/JSONAPITests/Relationships/RelationshipTests.swift
@@ -255,7 +255,11 @@ extension RelationshipTests {
255
try decodedThrows(type: ToManyWithMeta.self,
256
data: to_many_relationship_with_meta_no_data)
257
) { error in
258
- XCTAssertEqual(error.localizedDescription, "The data couldn’t be read because it is missing.")
+ let oldLinuxFoundationMsg = "The operation could not be completed. (SwiftError error 0.)"
259
+ let newDesirableMsg = "The data couldn’t be read because it is missing."
260
+ XCTAssert(
261
+ error.localizedDescription == newDesirableMsg || error.localizedDescription == oldLinuxFoundationMsg
262
+ )
263
}
264
265
0 commit comments