Skip to content

Commit 71d2824

Browse files
committed
Fixed a test
1 parent 0a3f2f8 commit 71d2824

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/spotify/github/v3/clients/WorkflowRunsClientTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public void getWorkflowRunFiltered() throws Exception {
9898
.build();
9999

100100
final CompletableFuture<WorkflowRunResponse> actualResponse =
101-
workflowRunsClient.getWorkflowRun(30433642L, null);
101+
workflowRunsClient.getWorkflowRun(30433642L, queryParams);
102102

103-
assertThat(pathCaptor.getValue(), is("/repos/someowner/somerepo/actions/runs/30433642"));
103+
assertThat(pathCaptor.getValue(), is("/repos/someowner/somerepo/actions/runs/30433642?excludePullRequests=true"));
104104

105105
assertThat(actualResponse.get().id(), is(30433642L));
106106
assertThat(actualResponse.get().status(), is(WorkflowRunStatus.queued));
@@ -224,5 +224,4 @@ public void listWorkflowRunsFiltered() throws Exception {
224224
assertThat(actualResponse.get().workflowRuns().get(0).createdAt(), is(ZonedDateTime.parse("2020-01-22T19:33:08Z")));
225225
assertThat(actualResponse.get().workflowRuns().get(0).displayTitle(), is("Update README.md"));
226226
}
227-
228227
}

0 commit comments

Comments
 (0)