Skip to content

Commit f590225

Browse files
committed
Merge branch '2.2.x' into 2.3.x
Closes gh-23328
2 parents 5c1055d + bd87ba3 commit f590225

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
@@ -83,7 +83,9 @@ void tearDown() {
8383
}
8484

8585
private NettyRSocketServerFactory getFactory() {
86-
return new NettyRSocketServerFactory();
86+
NettyRSocketServerFactory factory = new NettyRSocketServerFactory();
87+
factory.setPort(0);
88+
return factory;
8789
}
8890

8991
@Test
@@ -202,10 +204,12 @@ static class EchoRequestResponseAcceptor implements SocketAcceptor {
202204
@Override
203205
public Mono<RSocket> accept(ConnectionSetupPayload setupPayload, RSocket rSocket) {
204206
return Mono.just(new RSocket() {
207+
205208
@Override
206209
public Mono<Payload> requestResponse(Payload payload) {
207210
return Mono.just(DefaultPayload.create(payload));
208211
}
212+
209213
});
210214
}
211215

0 commit comments

Comments
 (0)