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.
This commit is contained in:
George Barnett authored and GitHub committed 2023-04-28 02:11:25 -07:00
1 parent e3497ffdc5
commit 77d35d2f43
1 file changed
+3 -3
@@ -143,7 +143,7 @@ final class AsyncChannelBootstrapTests: XCTestCase {
}
.bind(
host: "127.0.0.1",
port: 1995,
port: 0,
protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>.self
)
@@ -210,7 +210,7 @@ final class AsyncChannelBootstrapTests: XCTestCase {
}
.bind(
host: "127.0.0.1",
port: 1995,
port: 0,
protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>.self
)
@@ -333,7 +333,7 @@ final class AsyncChannelBootstrapTests: XCTestCase {
}
.bind(
host: "127.0.0.1",
port: 1995,
port: 0,
protocolNegotiationHandlerType: NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>.self
)