RSocket Tests use Available Port

Issue gh-7360
This commit is contained in:
Rob Winch 2019-09-05 09:15:55 -05:00
parent c46b224ec4
commit 7ad641d106
3 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ public class JwtITests {
.frameDecoder(PayloadDecoder.ZERO_COPY)
.addSocketAcceptorPlugin(this.interceptor)
.acceptor(this.handler.responder())
.transport(TcpServerTransport.create("localhost", 7000))
.transport(TcpServerTransport.create("localhost", 0))
.start()
.block();
}

View File

@ -75,7 +75,7 @@ public class RSocketMessageHandlerConnectionITests {
.frameDecoder(PayloadDecoder.ZERO_COPY)
.addSocketAcceptorPlugin(this.interceptor)
.acceptor(this.handler.responder())
.transport(TcpServerTransport.create("localhost", 7000))
.transport(TcpServerTransport.create("localhost", 0))
.start()
.block();
}

View File

@ -78,14 +78,14 @@ public class RSocketMessageHandlerITests {
.frameDecoder(PayloadDecoder.ZERO_COPY)
.addSocketAcceptorPlugin(this.interceptor)
.acceptor(this.handler.responder())
.transport(TcpServerTransport.create("localhost", 7000))
.transport(TcpServerTransport.create("localhost", 0))
.start()
.block();
this.requester = RSocketRequester.builder()
// .rsocketFactory(factory -> factory.addRequesterPlugin(payloadInterceptor))
.rsocketStrategies(this.handler.getRSocketStrategies())
.connectTcp("localhost", 7000)
.connectTcp("localhost", this.server.address().getPort())
.block();
}