From 2664332bfd17094dd8a485ea085099d6eac33068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Wed, 11 Jan 2023 14:03:40 +0100 Subject: [PATCH] repo: check error when closing a repo in tests --- repository/gogit_testing.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go index afbb917f4c3302c6da8cf0dd688bf8c9e0e83dc0..c76ea61dc471f82509b48b0c12f0f7f9a0653bc1 100644 --- a/repository/gogit_testing.go +++ b/repository/gogit_testing.go @@ -32,7 +32,10 @@ func CreateGoGitTestRepo(t testing.TB, bare bool) TestedRepo { } t.Cleanup(func() { - repo.Close() + err := repo.Close() + if err != nil { + log.Println(err) + } }) config := repo.LocalConfig()