Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Dec 11, 2023
1 parent a701ced commit 6b2fd19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/github/releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (p *ReleaseClient) FetchRelease(ctx context.Context, owner, repo, tagName s
listCtx, cancel := context.WithTimeout(ctx, 1*time.Minute)
defer cancel()

allReleases, err := p.ListReleases(listCtx, owner, repo, github.ListOptions{PerPage: 20})
allReleases, err := p.ListReleases(listCtx, owner, repo, github.ListOptions{PerPage: 25})
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestFetchRelease(t *testing.T) {
assert.Equal(int64(51517953), release.GetID())
assert.Equal(firstRelease, release.GetTagName())
assert.Len(release.Assets, 7)
assert.Equal(fmt.Sprintf("GET: %s?per_page=20\nGET: %s?page=2&per_page=20\n", releasesAPI, releasesAPI), requestLogger.String())
assert.Equal(fmt.Sprintf("GET: %s?per_page=25\n", releasesAPI), requestLogger.String())
}

func TestDownloadReleaseAssets(t *testing.T) {
Expand Down

0 comments on commit 6b2fd19

Please sign in to comment.