diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationIntegrationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationIntegrationTests.java index 40a5677549..70f28e4f16 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationIntegrationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationIntegrationTests.java @@ -158,10 +158,8 @@ class MetricsAutoConfigurationIntegrationTests { @Bean CompositeMeterRegistry compositeMeterRegistry() { - CompositeMeterRegistry compositeMeterRegistry = new CompositeMeterRegistry(new MockClock(), + return new CompositeMeterRegistry(new MockClock(), Arrays.asList(new SimpleMeterRegistry(), new SimpleMeterRegistry())); - System.out.println(compositeMeterRegistry.getRegistries()); - return compositeMeterRegistry; } }