Skip to content

Commit 3c69f1b

Browse files
authored
Update Java versions for tests (#3878)
1 parent 4bc03c3 commit 3c69f1b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build-common.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ jobs:
117117
- 8
118118
- 11
119119
- 17
120-
- 18
120+
- 21
121+
- 23
121122
vm:
122123
- hotspot
123124
# TODO (trask) enable once profiler supports OpenJ9

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)