Skip to content

Commit 00e2d1b

Browse files
committed
Revert AutoConfigurations.of() change
See https://github.com/spring-projects/spring-boot/pull/46505/files#r2224467888 Signed-off-by: Johnny Lim <[email protected]>
1 parent 32c9bbe commit 00e2d1b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

module/spring-boot-tracing/src/test/java/org/springframework/boot/tracing/autoconfigure/zipkin/ZipkinConfigurationsOpenTelemetryConfigurationTests.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ class ZipkinConfigurationsOpenTelemetryConfigurationTests {
4444

4545
@Test
4646
void backsOffWithoutEncoding() {
47-
new ApplicationContextRunner().withConfiguration(AutoConfigurations.of(OpenTelemetryConfiguration.class))
48-
.run((context) -> {
49-
assertThat(context).hasNotFailed();
50-
assertThat(context).doesNotHaveBean(ZipkinSpanExporter.class);
51-
assertThat(context).doesNotHaveBean(BytesEncoder.class);
52-
});
47+
new ApplicationContextRunner().withUserConfiguration(OpenTelemetryConfiguration.class).run((context) -> {
48+
assertThat(context).hasNotFailed();
49+
assertThat(context).doesNotHaveBean(ZipkinSpanExporter.class);
50+
assertThat(context).doesNotHaveBean(BytesEncoder.class);
51+
});
5352
}
5453

5554
@Test

0 commit comments

Comments
 (0)