Skip to content

Commit 44f437c

Browse files
committed
testing
1 parent ef5df81 commit 44f437c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/environment/src/main/java/datadog/environment/ConfigHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public static String getEnvironmentVariable(String name) {
8787
+ " from supported-configurations.json.");
8888
log.error(
8989
"Warning: Missing environment variable {} from supported-configurations.json.", name);
90+
new RuntimeException("why is there a warning").printStackTrace();
9091
}
9192

9293
if (configInversionStrict == ConfigInversionStrictStyle.STRICT) {

dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/TracerDebuggerIntegrationTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ static void tearDownAll() {
6767
@ValueSource(booleans = {true, false})
6868
@DisplayName("testTracer")
6969
@DisabledIf(
70-
value = "datadog.environment.JavaVirtualMachine#isJ9",
70+
value = "datadog.environment. JavaVirtualMachine#isJ9",
7171
disabledReason = "Flaky on J9 JVMs")
7272
void testTracer(boolean processTagsEnabled) throws Exception {
73+
currStyle = ConfigHelper.configInversionStrictFlag();
74+
ConfigHelper.setConfigInversionStrict(ConfigInversionStrictStyle.TEST);
7375
LogProbe logProbe =
7476
LogProbe.builder()
7577
.probeId(PROBE_ID)
@@ -95,6 +97,7 @@ void testTracer(boolean processTagsEnabled) throws Exception {
9597
} else {
9698
assertNull(request.getProcessTags());
9799
}
100+
ConfigHelper.setConfigInversionStrict(currStyle);
98101
}
99102

100103
@Test

0 commit comments

Comments
 (0)