Skip to content

Commit

Permalink
fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendi committed Dec 10, 2024
1 parent 0b07929 commit ccec1bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builder/store/database/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func TestRepoStore_PublicToUserSimple(t *testing.T) {
Sort: "recently_update",
}
// case 1: one tag
repos, _, err := rs.PublicToUser(ctx, repo.RepositoryType, []int64{1}, filter, 20, 1)
repos, _, err := rs.PublicToUser(ctx, repo.RepositoryType, []int64{1}, filter, 20, 1, false)
require.Nil(t, err)
require.NotNil(t, repos)

Expand All @@ -338,7 +338,7 @@ func TestRepoStore_PublicToUserSimple(t *testing.T) {
Sort: "recently_update",
}
// case 2: two tag
repos, _, err = rs.PublicToUser(ctx, repo.RepositoryType, []int64{1}, filter, 20, 1)
repos, _, err = rs.PublicToUser(ctx, repo.RepositoryType, []int64{1}, filter, 20, 1, false)
require.Nil(t, err)
require.NotNil(t, repos)
}
Expand Down Expand Up @@ -444,7 +444,7 @@ func TestRepoStore_PublicToUser(t *testing.T) {
Sort: c.sort,
Search: c.search,
Source: c.source,
}, 10, 1)
}, 10, 1, c.admin)
require.Nil(t, err)
names := []string{}
for _, r := range rs {
Expand Down

0 comments on commit ccec1bf

Please sign in to comment.