From ecdce1800cf7f8a64a40d814299ffd9b5c965c13 Mon Sep 17 00:00:00 2001 From: badhezi Date: Wed, 8 Oct 2025 11:56:32 +0300 Subject: [PATCH] Update tests/integration/compare_test.go Co-authored-by: Lunny Xiao Signed-off-by: badhezi --- tests/integration/compare_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index d620daf4b0..49b0ede848 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_test.go @@ -174,7 +174,7 @@ func TestCompareRawDiffNormal(t *testing.T) { session := loginUser(t, user1.Name) r, _ := gitrepo.OpenRepository(db.DefaultContext, repo) - +defer r.Close() oldRef, _ := r.GetBranchCommit(repo.DefaultBranch) oldBlobRef, _ := revParse(r, oldRef.ID.String(), "README.md")