aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migrations/gitea_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migrations/gitea_test.go')
-rw-r--r--modules/migrations/gitea_test.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/migrations/gitea_test.go b/modules/migrations/gitea_test.go
index 438902f320..3f03cbab31 100644
--- a/modules/migrations/gitea_test.go
+++ b/modules/migrations/gitea_test.go
@@ -59,19 +59,27 @@ func TestGiteaUploadRepo(t *testing.T) {
assert.NoError(t, err)
assert.EqualValues(t, 0, len(milestones))
- labels, err := models.GetLabelsByRepoID(repo.ID, "")
+ labels, err := models.GetLabelsByRepoID(repo.ID, "", models.ListOptions{})
assert.NoError(t, err)
assert.EqualValues(t, 11, len(labels))
releases, err := models.GetReleasesByRepoID(repo.ID, models.FindReleasesOptions{
+ ListOptions: models.ListOptions{
+ PageSize: 10,
+ Page: 0,
+ },
IncludeTags: true,
- }, 0, 10)
+ })
assert.NoError(t, err)
assert.EqualValues(t, 8, len(releases))
releases, err = models.GetReleasesByRepoID(repo.ID, models.FindReleasesOptions{
+ ListOptions: models.ListOptions{
+ PageSize: 10,
+ Page: 0,
+ },
IncludeTags: false,
- }, 0, 10)
+ })
assert.NoError(t, err)
assert.EqualValues(t, 1, len(releases))