Skip to content

Commit

Permalink
Update ListReleases test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Dec 11, 2023
1 parent 45e55a0 commit 987024a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/github/releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ func TestListReleases(t *testing.T) {
return
}
assert.NotEmpty(requestLogger)
assert.Equal(expectedRequestPages("GET", api, opt.PerPage, 2), requestLogger.String())
assert.GreaterOrEqual(len(releases), 2)
assert.Equal(expectedRequestPages("GET", api, opt.PerPage, 1), requestLogger.String())
assert.GreaterOrEqual(len(releases), 18)

opt = gh.ListOptions{PerPage: 2}
releases, err = client.ListReleases(ctx, owner, repo, opt)
if !assert.NoError(err) {
return
}
assert.GreaterOrEqual(len(releases), 2)
assert.GreaterOrEqual(len(releases), 18)

opt = gh.ListOptions{PerPage: 2}
_, err = client.ListReleases(ctx, owner, repo+"-fake", opt)
Expand Down

0 comments on commit 987024a

Please sign in to comment.