Skip to content

Commit da0c4f5

Browse files
committed
Increase endpoint integration test timeouts
Allow longer for test responses to be returned. See gh-9316
1 parent 4df84c5 commit da0c4f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/AbstractWebEndpointIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
*/
6464
public abstract class AbstractWebEndpointIntegrationTests<T extends ConfigurableApplicationContext> {
6565

66-
private static final Duration TIMEOUT = Duration.ofMinutes(2);
66+
private static final Duration TIMEOUT = Duration.ofMinutes(6);
6767

6868
private final Class<?> exporterConfiguration;
6969

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/test/AbstractWebEndpointRunner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
*/
4848
abstract class AbstractWebEndpointRunner extends BlockJUnit4ClassRunner {
4949

50+
private static final Duration TIMEOUT = Duration.ofMinutes(6);
51+
5052
private final String name;
5153

5254
private final TestContext testContext;
@@ -187,7 +189,7 @@ private WebTestClient createWebTestClient() {
187189
"http://localhost:" + determinePort());
188190
uriBuilderFactory.setEncodingMode(EncodingMode.NONE);
189191
return WebTestClient.bindToServer().uriBuilderFactory(uriBuilderFactory)
190-
.responseTimeout(Duration.ofSeconds(30)).build();
192+
.responseTimeout(TIMEOUT).build();
191193
}
192194

193195
private int determinePort() {

0 commit comments

Comments
 (0)