From 1d4667c825bb5d291070bd4463c39a16f950f674 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Thu, 16 Jun 2022 09:02:52 -0400 Subject: refactor(809): eliminate need to defer CleanupTestRepos() --- commands/env_testing.go | 2 ++ commands/select/select_test.go | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'commands') diff --git a/commands/env_testing.go b/commands/env_testing.go index 4de66a9d..b3c51c69 100644 --- a/commands/env_testing.go +++ b/commands/env_testing.go @@ -21,6 +21,8 @@ func newTestEnv(t *testing.T) *testEnv { cwd := t.TempDir() + // r := repository.CreateGoGitTestRepo(t, false) // TODO + repo, err := repository.InitGoGitRepo(cwd, gitBugNamespace) require.NoError(t, err) t.Cleanup(func() { diff --git a/commands/select/select_test.go b/commands/select/select_test.go index 488ab357..702700f4 100644 --- a/commands/select/select_test.go +++ b/commands/select/select_test.go @@ -11,8 +11,7 @@ import ( ) func TestSelect(t *testing.T) { - repo := repository.CreateGoGitTestRepo(false) - defer repository.CleanupTestRepos(repo) + repo := repository.CreateGoGitTestRepo(t, false) repoCache, err := cache.NewRepoCache(repo) require.NoError(t, err) -- cgit