Increase timeout for WebTestClient

Sometimes the tests fail with the message Timeout on blocking read for 5000000000 NANOSECONDS
This commit is contained in:
Marcus Da Coregio 2021-12-10 14:28:52 -03:00
parent 15adedbf87
commit 070916cbcd
11 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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();

View File

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

View File

@ -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();