Skip to content

Commit

Permalink
Avoid cross-test config contamination in microprofile/telemetry tes…
Browse files Browse the repository at this point in the history
…ts (#9685)

* Avoid cross-test config contamination

* Remove exclusion of test from Windows
  • Loading branch information
tjquinno authored Jan 24, 2025
1 parent 30f1bf6 commit aaaf65c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions microprofile/telemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,26 @@
<configuration>
<systemPropertyVariables>
<otel.bsp.schedule.delay>${otel.bsp.schedule.delay}</otel.bsp.schedule.delay>
<otel.sdk.disabled>false</otel.sdk.disabled>
</systemPropertyVariables>
<excludes>
<exclude>**/AgentDetectorTest.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<!--
This test does not need an active OTel SDK so run it separately to prevent it from running first
and leaving other tests with a no-op Otel which will cause them to fail.
-->
<id>agent-detector-tests</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/AgentDetectorTest.java</include>
</includes>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
class TestTracerAtStartup {

@Test
@DisabledOnOs(value = OS.WINDOWS, disabledReason = "https://github.com/helidon-io/helidon/issues/9513")
void checkForFullFeaturedTracerAtStartup() {
assertThat("Global tracer from start-up extension",
TestExtension.globalTracerAtStartup.unwrap(io.opentelemetry.api.trace.Tracer.class).getClass().getName(),
Expand Down

0 comments on commit aaaf65c

Please sign in to comment.