Skip to content

Commit 79b63d4

Browse files
committed
chore: update test
1 parent c20223b commit 79b63d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ public void testListComments() throws Throwable {
449449
final String expectedBody = "[" + getFixture("pull_request_review_comment_reply.json") + "]";
450450

451451
final String pageLink =
452-
"<https://github.com/api/v3/repos/owner/repo/pulls/1/comments>; rel=\"first\"";
452+
"<https://github.com/api/v3/repos/owner/repo/pulls/1/comments?page=1&per_page=30>; rel=\"first\"";
453453

454454
final HttpResponse firstPageResponse = createMockResponse(pageLink, expectedBody);
455455

456-
when(mockGithub.request("/repos/owner/repo/pulls/1/comments"))
456+
when(mockGithub.request("/repos/owner/repo/pulls/1/comments?per_page=30"))
457457
.thenReturn(completedFuture(firstPageResponse));
458458

459459
when(mockGithub.json()).thenReturn(github.json());

0 commit comments

Comments
 (0)