Skip to content

Commit dc8c2d0

Browse files
committed
Increase endpoint test timeouts
See gh-gh-9316
1 parent d45cf71 commit dc8c2d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.junit.runners.model.FrameworkMethod;
2828
import org.junit.runners.model.InitializationError;
2929
import org.junit.runners.model.Statement;
30+
import org.mozilla.javascript.ContextFactory;
3031

3132
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
3233
import org.springframework.context.ConfigurableApplicationContext;
@@ -47,6 +48,8 @@
4748
*/
4849
abstract class AbstractWebEndpointRunner extends BlockJUnit4ClassRunner {
4950

51+
private static final Duration TIMEOUT = Duration.ofMinutes(6);
52+
5053
private final String name;
5154

5255
private final TestContext testContext;
@@ -187,7 +190,7 @@ private WebTestClient createWebTestClient() {
187190
"http://localhost:" + determinePort());
188191
uriBuilderFactory.setEncodingMode(EncodingMode.NONE);
189192
return WebTestClient.bindToServer().uriBuilderFactory(uriBuilderFactory)
190-
.responseTimeout(Duration.ofSeconds(30)).build();
193+
.responseTimeout(TIMEOUT).build();
191194
}
192195

193196
private int determinePort() {

0 commit comments

Comments
 (0)