From 77d35d2f4314d50eaeb696c17caebac1eabb6b0f Mon Sep 17 00:00:00 2001 From: George Barnett Date: Fri, 28 Apr 2023 10:11:25 +0100 Subject: [PATCH] Bind to port 0 in a few more places (#2413) Motivation: Follow up to #2412 which changed the async channel bootstrap tests to bind to port 0 instead of a fixed port. A few instances were missed, this fixes up the remainder. Modifications: - Bind to port 0 Result: Tests should run in parallel without failures. --- Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift b/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift index 0f9782105..7753fcce9 100644 --- a/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift +++ b/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift @@ -143,7 +143,7 @@ final class AsyncChannelBootstrapTests: XCTestCase { } .bind( host: "127.0.0.1", - port: 1995, + port: 0, protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler.self ) @@ -210,7 +210,7 @@ final class AsyncChannelBootstrapTests: XCTestCase { } .bind( host: "127.0.0.1", - port: 1995, + port: 0, protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler.self ) @@ -333,7 +333,7 @@ final class AsyncChannelBootstrapTests: XCTestCase { } .bind( host: "127.0.0.1", - port: 1995, + port: 0, protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler.self )