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 2023-04-28 10:11:25 +01:00 committed by GitHub
parent e3497ffdc5
commit 77d35d2f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
)