diff options
author | Michael Muré <batolettre@gmail.com> | 2023-01-11 14:30:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 14:30:52 +0100 |
commit | 9c50a359704f4edd2f33df6d256e032feae3a576 (patch) | |
tree | 1c6732eb1a87ee9f65da62a6cf156bd441a2f02a /repository | |
parent | 76100380978418dbfa6fa880f05d335c9a4aafcd (diff) | |
parent | ace0f055074a6ecee0f9893d545f0ff6f7fc3c45 (diff) | |
download | git-bug-9c50a359704f4edd2f33df6d256e032feae3a576.tar.gz |
Merge pull request #989 from MichaelMure/fix-tests
repo: check error when closing a repo in tests
Diffstat (limited to 'repository')
-rw-r--r-- | repository/gogit_testing.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go index afbb917f..c76ea61d 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() |