aboutsummaryrefslogtreecommitdiffstats
path: root/commands/execenv/env_testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/execenv/env_testing.go')
-rw-r--r--commands/execenv/env_testing.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/execenv/env_testing.go b/commands/execenv/env_testing.go
index 6eb9c69d..a88ae263 100644
--- a/commands/execenv/env_testing.go
+++ b/commands/execenv/env_testing.go
@@ -49,8 +49,6 @@ func NewTestEnv(t *testing.T) *Env {
repo := repository.CreateGoGitTestRepo(t, false)
- buf := new(bytes.Buffer)
-
backend, err := cache.NewRepoCacheNoEvents(repo)
require.NoError(t, err)
@@ -61,7 +59,7 @@ func NewTestEnv(t *testing.T) *Env {
return &Env{
Repo: repo,
Backend: backend,
- Out: &TestOut{buf},
- Err: &TestOut{buf},
+ Out: &TestOut{&bytes.Buffer{}},
+ Err: &TestOut{&bytes.Buffer{}},
}
}