Fix whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff()

See gh-28492
This commit is contained in:
izeye
2021-10-31 20:39:52 +09:00
committed by Stephane Nicoll
parent f71e2198ca
commit 3e1bc01839

View File

@@ -53,7 +53,7 @@ class LettuceMetricsAutoConfigurationTests {
void whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff() {
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class)).run((context) -> {
ClientResources clientResources = context.getBean(LettuceConnectionFactory.class).getClientResources();
assertThat(clientResources.commandLatencyRecorder().isEnabled())
assertThat(clientResources.commandLatencyRecorder())
.isNotInstanceOf(MicrometerCommandLatencyRecorder.class);
});
}