Skip to content

Commit 1367556

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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;
@@ -14,7 +15,6 @@
1415
import java.util.Optional;
1516
import java.util.StringJoiner;
1617
import java.util.function.Predicate;
17-
import org.junit.jupiter.api.Disabled;
1818
import org.junit.jupiter.api.Test;
1919
import org.junit.jupiter.api.condition.EnabledForJreRange;
2020
import org.junit.jupiter.api.condition.EnabledOnOs;
@@ -33,6 +33,7 @@ void testParallel() throws Exception {
3333
}
3434

3535
@Test
36+
@EnabledForJreRange(max = JAVA_17)
3637
void testG1() throws Exception {
3738
testGc("-XX:+UseG1GC", 50);
3839
}
@@ -42,7 +43,6 @@ void testSerial() throws Exception {
4243
testGc("-XX:+UseSerialGC", 50);
4344
}
4445

45-
@Disabled
4646
@Test
4747
@EnabledForJreRange(min = JAVA_11)
4848
void testShenandoah() throws Exception {

0 commit comments

Comments
 (0)