Skip to content

Commit 6bad36c

Browse files
committed
Disable G1 test on 21+
1 parent 05556ec commit 6bad36c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/agent-gc-monitor/gc-monitor-tests/src/test/java/com/microsoft/gcmonitortests/VariousCollectorsTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static org.assertj.core.api.Assertions.assertThat;
77
import static org.junit.jupiter.api.condition.JRE.JAVA_11;
88
import static org.junit.jupiter.api.condition.JRE.JAVA_13;
9+
import static org.junit.jupiter.api.condition.JRE.JAVA_17;
910
import static org.junit.jupiter.api.condition.OS.LINUX;
1011

1112
import com.microsoft.gcmonitor.GcCollectionEvent;
@@ -33,6 +34,7 @@ void testParallel() throws Exception {
3334
}
3435

3536
@Test
37+
@EnabledForJreRange(max = JAVA_17)
3638
void testG1() throws Exception {
3739
testGc("-XX:+UseG1GC", 50);
3840
}
@@ -42,7 +44,7 @@ void testSerial() throws Exception {
4244
testGc("-XX:+UseSerialGC", 50);
4345
}
4446

45-
@Disabled
47+
@Disabled // see https://github.com/microsoft/ApplicationInsights-Java/pull/3083
4648
@Test
4749
@EnabledForJreRange(min = JAVA_11)
4850
void testShenandoah() throws Exception {

0 commit comments

Comments
 (0)