Skip to content

Commit ce68e5f

Browse files
committed
Verify RestartEndpoint is enabled without causing a restart
Fixes #1362
1 parent f9b9f1a commit ce68e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/LifecycleMvcAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void restartEndpointGloballyDisabled() {
7777

7878
@Test
7979
public void restartEndpointEnabled() {
80-
beanCreatedAndEndpointEnabled("restartEndpoint", RestartEndpoint.class, RestartEndpoint::restart,
80+
beanCreatedAndEndpointEnabled("restartEndpoint", RestartEndpoint.class, RestartEndpoint::getTimeout,
8181
"management.endpoint.restart.enabled=true", "management.endpoints.web.exposure.include=restart");
8282
}
8383

0 commit comments

Comments
 (0)