Skip to content

Commit 43010eb

Browse files
committed
Merge branch '2.3.x'
Closes gh-23329
2 parents 5f49d4a + f590225 commit 43010eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/rsocket/netty/NettyRSocketServerFactoryTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ void tearDown() {
8989
}
9090

9191
private NettyRSocketServerFactory getFactory() {
92-
return new NettyRSocketServerFactory();
92+
NettyRSocketServerFactory factory = new NettyRSocketServerFactory();
93+
factory.setPort(0);
94+
return factory;
9395
}
9496

9597
@Test
@@ -272,10 +274,12 @@ static class EchoRequestResponseAcceptor implements SocketAcceptor {
272274
@Override
273275
public Mono<RSocket> accept(ConnectionSetupPayload setupPayload, RSocket rSocket) {
274276
return Mono.just(new RSocket() {
277+
275278
@Override
276279
public Mono<Payload> requestResponse(Payload payload) {
277280
return Mono.just(DefaultPayload.create(payload));
278281
}
282+
279283
});
280284
}
281285

0 commit comments

Comments
 (0)