1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00

add missing defer

(cherry picked from commit 8ffaa08b04)
This commit is contained in:
oliverpool 2024-04-09 21:14:51 +02:00 committed by Earl Warren
parent 569b73e495
commit dd474b72df
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -1076,6 +1076,7 @@ func TestDataAsync_Issue29101(t *testing.T) {
gitRepo, err := gitrepo.OpenRepository(db.DefaultContext, repo) gitRepo, err := gitrepo.OpenRepository(db.DefaultContext, repo)
assert.NoError(t, err) assert.NoError(t, err)
defer gitRepo.Close()
commit, err := gitRepo.GetCommit(sha) commit, err := gitRepo.GetCommit(sha)
assert.NoError(t, err) assert.NoError(t, err)