Skip to content

Commit 1f17e01

Browse files
izeyemhalbritter
authored andcommitted
Fix property name in OnEnabledLoggingExportConditionTests
See gh-43331
1 parent 32b3995 commit 1f17e01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/logging/OnEnabledLoggingExportConditionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void shouldMatchIfExporterPropertyIsTrue() {
9090
void exporterPropertyShouldOverrideGlobalPropertyIfTrue() {
9191
OnEnabledLoggingExportCondition condition = new OnEnabledLoggingExportCondition();
9292
ConditionOutcome outcome = condition.getMatchOutcome(mockConditionContext(
93-
Map.of("management.logging.enabled", "false", "management.otlp.logging.export.enabled", "true")),
93+
Map.of("management.logging.export.enabled", "false", "management.otlp.logging.export.enabled", "true")),
9494
mockMetadata("otlp"));
9595
assertThat(outcome.isMatch()).isTrue();
9696
assertThat(outcome.getMessage())
@@ -101,7 +101,7 @@ void exporterPropertyShouldOverrideGlobalPropertyIfTrue() {
101101
void exporterPropertyShouldOverrideGlobalPropertyIfFalse() {
102102
OnEnabledLoggingExportCondition condition = new OnEnabledLoggingExportCondition();
103103
ConditionOutcome outcome = condition.getMatchOutcome(mockConditionContext(
104-
Map.of("management.logging.enabled", "true", "management.otlp.logging.export.enabled", "false")),
104+
Map.of("management.logging.export.enabled", "true", "management.otlp.logging.export.enabled", "false")),
105105
mockMetadata("otlp"));
106106
assertThat(outcome.isMatch()).isFalse();
107107
assertThat(outcome.getMessage())

0 commit comments

Comments
 (0)