Skip to content

Commit 0e9fc98

Browse files
simplify check
1 parent 2f0b412 commit 0e9fc98

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Tests/ApolloCacheDependentTests/StarWarsServerCachingRoundtripTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ class StarWarsServerCachingRoundtripTests: XCTestCase {
5353
expectation.fulfill()
5454
return
5555
case .success(let fetchGraphQLResult):
56-
if let errors = fetchGraphQLResult.errors {
57-
// We aren't expecting errors, so fail the test, but don't kill the rest of the checks.
58-
XCTFail("Errors in query result: \(errors)")
59-
}
56+
XCTAssertNil(fetchGraphQLResult.errors)
6057

6158
guard fetchGraphQLResult.data != nil else {
6259
XCTFail("No query result data from fetching!")

0 commit comments

Comments
 (0)