From f3d316d16cc9fadd90faaaf77becbb82f1e09367 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Thu, 16 Jun 2022 19:45:51 -0400 Subject: test(809): remove remaining calls to InitGoRepo in tests Note that examples still need to shown how a developer would use the library. --- commands/env_testing.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'commands') diff --git a/commands/env_testing.go b/commands/env_testing.go index b3c51c69..48807725 100644 --- a/commands/env_testing.go +++ b/commands/env_testing.go @@ -19,15 +19,8 @@ type testEnv struct { func newTestEnv(t *testing.T) *testEnv { t.Helper() - cwd := t.TempDir() - - // r := repository.CreateGoGitTestRepo(t, false) // TODO - - repo, err := repository.InitGoGitRepo(cwd, gitBugNamespace) - require.NoError(t, err) - t.Cleanup(func() { - require.NoError(t, repo.Close()) - }) + repo := repository.CreateGoGitTestRepo(t, false) + cwd := repository.RepoDir(t, repo) buf := new(bytes.Buffer) -- cgit