1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add a simple test for external renderer (#20033)

Fix #16402
This commit is contained in:
Lunny Xiao
2022-12-12 20:45:21 +08:00
committed by GitHub
parent 6398ca745a
commit 36a2d2f919
24 changed files with 178 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ func TestIterate(t *testing.T) {
return nil
})
assert.NoError(t, err)
assert.EqualValues(t, 79, repoCnt)
assert.EqualValues(t, 80, repoCnt)
err = db.Iterate(db.DefaultContext, nil, func(ctx context.Context, repoUnit *repo_model.RepoUnit) error {
reopUnit2 := repo_model.RepoUnit{ID: repoUnit.ID}