spring.rsocket.server.port=0
This commit is contained in:
parent
ace14220f2
commit
ad4a7279dd
|
@ -25,6 +25,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|||
import org.springframework.messaging.rsocket.RSocketRequester;
|
||||
import org.springframework.security.rsocket.metadata.SimpleAuthenticationEncoder;
|
||||
import org.springframework.security.rsocket.metadata.UsernamePasswordMetadata;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
import org.springframework.util.MimeTypeUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
@ -38,6 +39,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|||
* @since 5.0
|
||||
*/
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@TestPropertySource(properties = "spring.rsocket.server.port=0")
|
||||
public class HelloRSocketApplicationITests {
|
||||
|
||||
@Autowired
|
||||
|
|
Loading…
Reference in New Issue