aboutsummaryrefslogtreecommitdiffstats
path: root/commands/env_testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/env_testing.go')
-rw-r--r--commands/env_testing.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/commands/env_testing.go b/commands/env_testing.go
index 4de66a9d..1493a190 100644
--- a/commands/env_testing.go
+++ b/commands/env_testing.go
@@ -12,20 +12,13 @@ import (
type testEnv struct {
env *Env
- cwd string
out *bytes.Buffer
}
func newTestEnv(t *testing.T) *testEnv {
t.Helper()
- cwd := t.TempDir()
-
- repo, err := repository.InitGoGitRepo(cwd, gitBugNamespace)
- require.NoError(t, err)
- t.Cleanup(func() {
- require.NoError(t, repo.Close())
- })
+ repo := repository.CreateGoGitTestRepo(t, false)
buf := new(bytes.Buffer)
@@ -42,7 +35,6 @@ func newTestEnv(t *testing.T) *testEnv {
out: out{Writer: buf},
err: out{Writer: buf},
},
- cwd: cwd,
out: buf,
}
}