1
0
Fork 0
forked from forgejo/forgejo

Fixed assert statements. (#16089)

This commit is contained in:
KN4CK3R 2021-06-07 07:27:09 +02:00 committed by GitHub
parent 51775f65bc
commit 3607f79d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 227 additions and 228 deletions

View file

@ -21,7 +21,7 @@ func TestIncludesAllRepositoriesTeams(t *testing.T) {
team := models.AssertExistsAndLoadBean(t, &models.Team{ID: teamID}).(*models.Team)
assert.NoError(t, team.GetRepositories(&models.SearchTeamOptions{}), "%s: GetRepositories", team.Name)
assert.Len(t, team.Repos, team.NumRepos, "%s: len repo", team.Name)
assert.Equal(t, len(repoIds), len(team.Repos), "%s: repo count", team.Name)
assert.Len(t, team.Repos, len(repoIds), "%s: repo count", team.Name)
for i, rid := range repoIds {
if rid > 0 {
assert.True(t, team.HasRepository(rid), "%s: HasRepository(%d) %d", rid, i)