Skip to content

Commit bebfa76

Browse files
committed
Fix tests
See gh-12838
1 parent a5dc004 commit bebfa76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/SampleActuatorApplicationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public void testHtmlErrorPage() {
161161
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR);
162162
String body = entity.getBody();
163163
assertThat(body).as("Body was null").isNotNull();
164-
assertThat(body).contains("This application has no explicit mapping for /error");
164+
assertThat(body).contains(
165+
"This application has no configured error view, so you are seeing this as a fallback.");
165166
}
166167

167168
@Test

0 commit comments

Comments
 (0)