mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 07:49:03 +00:00
Merge branch '3.5.x'
Closes gh-46589
This commit is contained in:
+6
@@ -17,6 +17,12 @@
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether the condition evaluation report should be printed when the ApplicationContext fails to start.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "spring.test.webtestclient.timeout",
|
||||
"type": "java.time.Duration",
|
||||
"description": "Maximum amount of time to wait for responses.",
|
||||
"defaultValue": "5s"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+8
@@ -69,6 +69,14 @@ class WebTestClientAutoConfigurationTests {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldHaveConsistentDefaultTimeout() {
|
||||
this.contextRunner.withUserConfiguration(BaseConfiguration.class).run((context) -> {
|
||||
WebTestClient webTestClient = context.getBean(WebTestClient.class);
|
||||
assertThat(webTestClient).hasFieldOrPropertyWithValue("responseTimeout", Duration.ofSeconds(5));
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldCustomizeTimeout() {
|
||||
this.contextRunner.withUserConfiguration(BaseConfiguration.class)
|
||||
|
||||
Reference in New Issue
Block a user