Skip to content

Commit

Permalink
Merge pull request #28492 from izeye
Browse files Browse the repository at this point in the history
* pr/28492:
  Fix whenThereIsNoMeterRegistryThenClientResourcesCustomizationBacksOff()

Closes gh-28492
  • Loading branch information
snicoll committed Nov 1, 2021
2 parents f71e219 + 3e1bc01 commit 83e4430
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ void whenThereIsAMeterRegistryThenCommandLatencyRecorderIsAdded() {
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);
});
}
Expand Down

0 comments on commit 83e4430

Please sign in to comment.