Increase endpoint integration test timeouts

Allow longer for test responses to be returned.

See gh-9316
pull/10519/head
Phillip Webb 7 years ago
parent 4df84c53bc
commit da0c4f5520

@ -63,7 +63,7 @@ import static org.mockito.Mockito.verify;
*/
public abstract class AbstractWebEndpointIntegrationTests<T extends ConfigurableApplicationContext> {
private static final Duration TIMEOUT = Duration.ofMinutes(2);
private static final Duration TIMEOUT = Duration.ofMinutes(6);
private final Class<?> exporterConfiguration;

@ -47,6 +47,8 @@ import org.springframework.web.util.DefaultUriBuilderFactory.EncodingMode;
*/
abstract class AbstractWebEndpointRunner extends BlockJUnit4ClassRunner {
private static final Duration TIMEOUT = Duration.ofMinutes(6);
private final String name;
private final TestContext testContext;
@ -187,7 +189,7 @@ abstract class AbstractWebEndpointRunner extends BlockJUnit4ClassRunner {
"http://localhost:" + determinePort());
uriBuilderFactory.setEncodingMode(EncodingMode.NONE);
return WebTestClient.bindToServer().uriBuilderFactory(uriBuilderFactory)
.responseTimeout(Duration.ofSeconds(30)).build();
.responseTimeout(TIMEOUT).build();
}
private int determinePort() {

Loading…
Cancel
Save