Skip to content

Commit 83e4430

Browse files
committed
Merge pull request #28492 from izeye
* pr/28492: Fix whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff() Closes gh-28492
2 parents f71e219 + 3e1bc01 commit 83e4430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/redis/LettuceMetricsAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void whenThereIsAMeterRegistryThenCommandLatencyRecorderIsAdded() {
5353
void whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff() {
5454
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class)).run((context) -> {
5555
ClientResources clientResources = context.getBean(LettuceConnectionFactory.class).getClientResources();
56-
assertThat(clientResources.commandLatencyRecorder().isEnabled())
56+
assertThat(clientResources.commandLatencyRecorder())
5757
.isNotInstanceOf(MicrometerCommandLatencyRecorder.class);
5858
});
5959
}

0 commit comments

Comments
 (0)