File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/GraphQL/Execution
Tests/GraphQLTests/FieldExecutionStrategyTests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public struct ConcurrentDispatchFieldExecutionStrategy: QueryFieldExecutionStrat
187187 . mapValues { _ -> Future < Any > ? in nil }
188188 var err : Error ?
189189
190- fields . forEach { field in
190+ for field in fields {
191191 let fieldASTs = field. value
192192 let fieldKey = field. key
193193 let fieldPath = path. appending ( fieldKey)
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ class FieldExecutionStrategyTests: XCTestCase {
259259 XCTAssertEqual ( result. value. data, multiThrowsExpectedData)
260260 let resultErrors = result. value. errors
261261 XCTAssertEqual ( resultErrors. count, multiThrowsExpectedErrors. count)
262- multiThrowsExpectedErrors . forEach { m in
262+ for m in multiThrowsExpectedErrors {
263263 XCTAssertTrue ( resultErrors. contains ( m) , " Expecting result errors to contain \( m) " )
264264 }
265265 // XCTAssertEqualWithAccuracy(1.0, result.seconds, accuracy: 0.5)
@@ -308,7 +308,7 @@ class FieldExecutionStrategyTests: XCTestCase {
308308 XCTAssertEqual ( result. value. data, multiThrowsExpectedData)
309309 let resultErrors = result. value. errors
310310 XCTAssertEqual ( resultErrors. count, multiThrowsExpectedErrors. count)
311- multiThrowsExpectedErrors . forEach { m in
311+ for m in multiThrowsExpectedErrors {
312312 XCTAssertTrue ( resultErrors. contains ( m) , " Expecting result errors to contain \( m) " )
313313 }
314314 // XCTAssertEqualWithAccuracy(0.1, result.seconds, accuracy: 0.25)
You can’t perform that action at this time.
0 commit comments