From d2bd75328b7eca037243b4ea287a3b0e210d8321 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 27 Feb 2018 07:36:23 +0900 Subject: [PATCH] Fix test code on linux (#37) Motivation: 73a805c7f6c96aa19a2c5b7b6a529616a028e16c did some changes but missed to rename one variable. This broke the build on linux. Modifications: Rename fn to body. Result: Builds again on linux. --- Tests/NIOTests/EventLoopTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NIOTests/EventLoopTest.swift b/Tests/NIOTests/EventLoopTest.swift index f01d2079..0a055d3f 100644 --- a/Tests/NIOTests/EventLoopTest.swift +++ b/Tests/NIOTests/EventLoopTest.swift @@ -208,7 +208,7 @@ public class EventLoopTest : XCTestCase { t.affinity = set XCTAssertEqual(set, t.affinity) } - let threads: [ThreadInitializer] = [fn, body] + let threads: [ThreadInitializer] = [body, body] let group = MultiThreadedEventLoopGroup(threadInitializers: threads)