aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/env_testing.go11
1 files changed, 2 insertions, 9 deletions
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)