@@ -30,8 +30,8 @@ class WatchQueryTests: XCTestCase {
3030
3131 var verifyResult : GraphQLResultHandler < HeroNameQuery . Data >
3232
33- verifyResult = { outerResult in
34- switch outerResult {
33+ verifyResult = { result in
34+ switch result {
3535 case . success( let graphQLResult) :
3636 XCTAssertNil ( graphQLResult. errors)
3737 XCTAssertEqual ( graphQLResult. data? . hero? . name, " R2-D2 " )
@@ -49,8 +49,8 @@ class WatchQueryTests: XCTestCase {
4949
5050 waitForExpectations ( timeout: 5 , handler: nil )
5151
52- verifyResult = { outerResult in
53- switch outerResult {
52+ verifyResult = { result in
53+ switch result {
5454 case . success( let graphQLResult) :
5555 XCTAssertNil ( graphQLResult. errors)
5656 XCTAssertEqual ( graphQLResult. data? . hero? . name, " Artoo " )
@@ -100,8 +100,8 @@ class WatchQueryTests: XCTestCase {
100100
101101 var verifyResult : GraphQLResultHandler < HeroAndFriendsNamesQuery . Data >
102102
103- verifyResult = { outerResult in
104- switch outerResult {
103+ verifyResult = { result in
104+ switch result {
105105 case . success( let graphQLResult) :
106106 XCTAssertNil ( graphQLResult. errors)
107107 guard let data = graphQLResult. data else {
@@ -126,8 +126,8 @@ class WatchQueryTests: XCTestCase {
126126
127127 waitForExpectations ( timeout: 5 , handler: nil )
128128
129- verifyResult = { outerResult in
130- switch outerResult {
129+ verifyResult = { result in
130+ switch result {
131131 case . success( let graphQLResult) :
132132 XCTAssertNil ( graphQLResult. errors)
133133 guard let data = graphQLResult. data else {
@@ -188,7 +188,7 @@ class WatchQueryTests: XCTestCase {
188188 let fetching = self . expectation ( description: " Fetching query " )
189189 var refetching : XCTestExpectation ?
190190
191- let _ = client. watch ( query: query) { outerResult in
191+ let _ = client. watch ( query: query) { result in
192192 guard refetching == nil else {
193193 return refetching!. fulfill ( )
194194 }
@@ -197,7 +197,7 @@ class WatchQueryTests: XCTestCase {
197197 fetching. fulfill ( )
198198 }
199199
200- switch outerResult {
200+ switch result {
201201 case . success( let graphQLResult) :
202202 XCTAssertNil ( graphQLResult. errors)
203203
@@ -259,8 +259,8 @@ class WatchQueryTests: XCTestCase {
259259
260260 var verifyResult : GraphQLResultHandler < HeroNameWithIdQuery . Data >
261261
262- verifyResult = { outerResult in
263- switch outerResult {
262+ verifyResult = { result in
263+ switch result {
264264 case . success( let graphQLResult) :
265265 XCTAssertNil ( graphQLResult. errors)
266266 XCTAssertEqual ( graphQLResult. data? . hero? . name, " R2-D2 " )
@@ -278,8 +278,8 @@ class WatchQueryTests: XCTestCase {
278278
279279 waitForExpectations ( timeout: 5 , handler: nil )
280280
281- verifyResult = { outerResult in
282- switch outerResult {
281+ verifyResult = { result in
282+ switch result {
283283 case . success( let graphQLResult) :
284284 XCTAssertNil ( graphQLResult. errors)
285285 XCTAssertEqual ( graphQLResult. data? . hero? . name, " Luke Skywalker " )
@@ -321,8 +321,8 @@ class WatchQueryTests: XCTestCase {
321321
322322 var verifyResult : GraphQLResultHandler < HeroAndFriendsNamesQuery . Data >
323323
324- verifyResult = { outerResult in
325- switch outerResult {
324+ verifyResult = { result in
325+ switch result {
326326 case . success( let graphQLResult) :
327327 XCTAssertNil ( graphQLResult. errors)
328328
@@ -362,8 +362,8 @@ class WatchQueryTests: XCTestCase {
362362 }
363363 } )
364364
365- verifyResult = { outerResult in
366- switch outerResult {
365+ verifyResult = { result in
366+ switch result {
367367 case . success( let graphQLResult) :
368368 XCTAssertNil ( graphQLResult. errors)
369369 guard let data = graphQLResult. data else {
0 commit comments