Skip to content

Commit e1df6fe

Browse files
Fixed test.
1 parent 1037295 commit e1df6fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dd-java-agent/src/test/groovy/datadog/trace/bootstrap/AgentPreCheckTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AgentPreCheckTest extends Specification {
7373
} else {
7474
logLines.size() == 2
7575
def expectedLogLines = [
76-
"Warning: Version ${AgentJar.getAgentVersion()} of dd-java-agent is not compatible with Java $javaVersion found at '/Library/$javaVersion' and will not be installed.",
76+
"Warning: Version ${AgentJar.getAgentVersion()} of dd-java-agent is not compatible with Java $javaVersion found at '/Library/$javaVersion' and is effectively disabled.",
7777
"Please upgrade your Java version to 8+"
7878
]
7979
assert logLines == expectedLogLines

test-published-dependencies/agent-logs-on-java-7/src/test/java/StartWithAgentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class StartWithAgentTest {
1616

17-
private static final Pattern WARNING_PATTERN = Pattern.compile("^Warning: Version [^ ]+ of dd-java-agent is not compatible with Java [^ ]+ found at [^ ]+ and will not be installed\\.$");
17+
private static final Pattern WARNING_PATTERN = Pattern.compile("^Warning: Version [^ ]+ of dd-java-agent is not compatible with Java [^ ]+ found at [^ ]+ and is effectively disabled\\.$");
1818
private static final String UPGRADE_MESSAGE = "Please upgrade your Java version to 8+";
1919

2020
@Test

0 commit comments

Comments
 (0)