Skip to content

Commit

Permalink
simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
designatednerd committed Jul 17, 2019
1 parent 2f0b412 commit 0e9fc98
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ class StarWarsServerCachingRoundtripTests: XCTestCase {
expectation.fulfill()
return
case .success(let fetchGraphQLResult):
if let errors = fetchGraphQLResult.errors {
// We aren't expecting errors, so fail the test, but don't kill the rest of the checks.
XCTFail("Errors in query result: \(errors)")
}
XCTAssertNil(fetchGraphQLResult.errors)

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

0 comments on commit 0e9fc98

Please sign in to comment.