diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-06-16 09:02:52 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-06-16 09:02:52 -0400 |
commit | 1d4667c825bb5d291070bd4463c39a16f950f674 (patch) | |
tree | 84f1101f4cddc3804955c2c2ff90e3687c1dafee /api/http/git_file_handlers_test.go | |
parent | d853a6fbc996762ab264452150558bb92bdbd6fc (diff) | |
download | git-bug-1d4667c825bb5d291070bd4463c39a16f950f674.tar.gz |
refactor(809): eliminate need to defer CleanupTestRepos()
Diffstat (limited to 'api/http/git_file_handlers_test.go')
-rw-r--r-- | api/http/git_file_handlers_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/http/git_file_handlers_test.go b/api/http/git_file_handlers_test.go index 68c1542f..736bf75e 100644 --- a/api/http/git_file_handlers_test.go +++ b/api/http/git_file_handlers_test.go @@ -19,8 +19,7 @@ import ( ) func TestGitFileHandlers(t *testing.T) { - repo := repository.CreateGoGitTestRepo(false) - defer repository.CleanupTestRepos(repo) + repo := repository.CreateGoGitTestRepo(t, false) mrc := cache.NewMultiRepoCache() repoCache, err := mrc.RegisterDefaultRepository(repo) |