Merge pull request #28492 from izeye

* pr/28492:
  Fix whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff()

Closes gh-28492
This commit is contained in:
Stephane Nicoll
2021-11-01 09:00:29 +01:00

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);
});
}