79091716

Date: 2024-10-15 20:56:46
Score: 0.5
Natty:
Report link

Set the rsocket port to 0, for instance:

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
    properties = {"spring.rsocket.server.port=0"})
public class MyControllerTest {
  // your test goes here
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jelil Adesina