Skip to content

Commit 5d3bae7

Browse files
committed
Removes Java 11 API in test
1 parent 7d4097b commit 5d3bae7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/org/kohsuke/github/GHRepositoryTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,9 +1348,11 @@ public void getCheckRuns() throws Exception {
13481348
public void getCheckRunsWithParams() throws Exception {
13491349
final int expectedCount = 1;
13501350
// Use github-api repository as it has checks set up
1351+
final Map<String, Object> params = new HashMap<>(1);
1352+
params.put("check_name", "build-only (Java 17)");
13511353
PagedIterable<GHCheckRun> checkRuns = gitHub.getOrganization("hub4j")
13521354
.getRepository("github-api")
1353-
.getCheckRuns("54d60fbb53b4efa19f3081417bfb6a1de30c55e4", Map.of("check_name", "build-only (Java 17)"));
1355+
.getCheckRuns("54d60fbb53b4efa19f3081417bfb6a1de30c55e4", params);
13541356

13551357
// Check if the checkruns are all succeeded and if we got all of them
13561358
int checkRunsCount = 0;

0 commit comments

Comments
 (0)