Increase timeout for WebTestClient
Sometimes the tests fail with the message Timeout on blocking read for 5000000000 NANOSECONDS
This commit is contained in:
parent
15adedbf87
commit
070916cbcd
|
@ -28,7 +28,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloTests {
|
public class HelloTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloTests {
|
public class HelloTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloSecurityTests {
|
public class HelloSecurityTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloSecurityTests {
|
public class HelloSecurityTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloTests {
|
public class HelloTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class HelloMethodApplicationTests {
|
public class HelloMethodApplicationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -36,7 +36,7 @@ import static org.springframework.security.test.web.reactive.server.SecurityMock
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class OAuth2LoginApplicationTests {
|
public class OAuth2LoginApplicationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -36,7 +36,7 @@ import static org.hamcrest.Matchers.containsString;
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
@ActiveProfiles("test")
|
@ActiveProfiles("test")
|
||||||
public class ServerOAuth2ResourceServerApplicationITests {
|
public class ServerOAuth2ResourceServerApplicationITests {
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ import static org.springframework.security.test.web.reactive.server.SecurityMock
|
||||||
|
|
||||||
@WebFluxTest
|
@WebFluxTest
|
||||||
@Import({ SecurityConfiguration.class, OAuth2WebClientController.class })
|
@Import({ SecurityConfiguration.class, OAuth2WebClientController.class })
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class OAuth2WebClientControllerTests {
|
public class OAuth2WebClientControllerTests {
|
||||||
|
|
||||||
private static MockWebServer web = new MockWebServer();
|
private static MockWebServer web = new MockWebServer();
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class OAuth2WebClientWebFluxApplicationTests {
|
public class OAuth2WebClientWebFluxApplicationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -39,7 +39,7 @@ import static org.springframework.security.test.web.reactive.server.SecurityMock
|
||||||
|
|
||||||
@WebFluxTest
|
@WebFluxTest
|
||||||
@Import({ SecurityConfiguration.class, RegisteredOAuth2AuthorizedClientController.class })
|
@Import({ SecurityConfiguration.class, RegisteredOAuth2AuthorizedClientController.class })
|
||||||
@AutoConfigureWebTestClient
|
@AutoConfigureWebTestClient(timeout = "36000")
|
||||||
public class RegisteredOAuth2AuthorizedClientControllerTests {
|
public class RegisteredOAuth2AuthorizedClientControllerTests {
|
||||||
|
|
||||||
private static MockWebServer web = new MockWebServer();
|
private static MockWebServer web = new MockWebServer();
|
||||||
|
|
Loading…
Reference in New Issue