@@ -292,7 +292,7 @@ class EventLoopFutureTest: XCTestCase {
292292 let promises : [ EventLoopPromise < Int > ] = ( 0 ..< 100 ) . map { ( _: Int ) in eventLoop. makePromise ( ) }
293293 let futures = promises. map { $0. futureResult }
294294
295- let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop, + )
295+ let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop) { $0 + $1 }
296296 _ = promises. map { $0. fail ( E ( ) ) }
297297 XCTAssert ( fN. eventLoop === eventLoop)
298298 XCTAssertThrowsError ( try fN. wait ( ) ) { error in
@@ -311,7 +311,7 @@ class EventLoopFutureTest: XCTestCase {
311311
312312 let futures = promises. map { $0. futureResult }
313313
314- let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop, + )
314+ let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop) { $0 + $1 }
315315 XCTAssert ( fN. eventLoop === eventLoop)
316316 XCTAssertThrowsError ( try fN. wait ( ) ) { error in
317317 XCTAssertNotNil ( error as? E )
@@ -327,7 +327,7 @@ class EventLoopFutureTest: XCTestCase {
327327 promises. insert ( failedPromise, at: promises. startIndex)
328328
329329 let futures = promises. map { $0. futureResult }
330- let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop, + )
330+ let fN : EventLoopFuture < Int > = EventLoopFuture< Int> . reduce( 0 , futures, on: eventLoop) { $0 + $1 }
331331
332332 failedPromise. fail ( E ( ) )
333333
0 commit comments