Skip to content

Commit 6dad629

Browse files
barchettatjquinno
andauthored
Avoid cross-test config contamination in microprofile/telemetry tests (helidon-io#9685) (helidon-io#9758)
* Avoid cross-test config contamination Co-authored-by: Tim Quinn <[email protected]>
1 parent e6f5ba3 commit 6dad629

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

microprofile/telemetry/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,26 @@
147147
<configuration>
148148
<systemPropertyVariables>
149149
<otel.bsp.schedule.delay>${otel.bsp.schedule.delay}</otel.bsp.schedule.delay>
150+
<otel.sdk.disabled>false</otel.sdk.disabled>
150151
</systemPropertyVariables>
152+
<excludes>
153+
<exclude>**/AgentDetectorTest.java</exclude>
154+
</excludes>
155+
</configuration>
156+
</execution>
157+
<execution>
158+
<!--
159+
This test does not need an active OTel SDK so run it separately to prevent it from running first
160+
and leaving other tests with a no-op Otel which will cause them to fail.
161+
-->
162+
<id>agent-detector-tests</id>
163+
<goals>
164+
<goal>test</goal>
165+
</goals>
166+
<configuration>
167+
<includes>
168+
<include>**/AgentDetectorTest.java</include>
169+
</includes>
151170
</configuration>
152171
</execution>
153172
</executions>

0 commit comments

Comments
 (0)