Skip to content

Commit 3479bd2

Browse files
committed
fix
1 parent 9abd341 commit 3479bd2

File tree

1 file changed

+2
-2
lines changed
  • smoke-tests/apps/JmxMetric/src/smokeTest/java/com/microsoft/applicationinsights/smoketest

1 file changed

+2
-2
lines changed

smoke-tests/apps/JmxMetric/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/JmxMetricTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ private void verifyJmxMetricsSentToBreeze() throws Exception {
171171

172172
// This will indirectly check the occurrences of the optional gc metrics
173173
// and confirm that the wildcard metric has the expected value
174-
// Java 21 returns 6 more CollectionCount for the wildcard metric comparing to other Java
174+
// Java 21+ returns 6 more CollectionCount for the wildcard metric comparing to other Java
175175
// versions
176-
if (testing.getCurrentEnvironment() == TOMCAT_8_JAVA_21) {
176+
if (testing.getCurrentEnvironment() == TOMCAT_8_JAVA_21 || testing.getCurrentEnvironment() == TOMCAT_8_JAVA_23) {
177177
assertThat(wildcardValueSum).isEqualTo(gcFirstMatch + gcSecondMatch + 6);
178178
} else {
179179
assertThat(wildcardValueSum).isEqualTo(gcFirstMatch + gcSecondMatch);

0 commit comments

Comments
 (0)