Эх сурвалжийг харах

spring.rsocket.server.port=0

Rob Winch 5 жил өмнө
parent
commit
ad4a7279dd

+ 2 - 0
reactive/rsocket/hello-security/src/integTest/java/example/HelloRSocketApplicationITests.java

@@ -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