fix: Use stdin/out defined in command (#3199)

This commit is contained in:
Mathias Fredriksson
2022-07-26 17:23:32 +03:00
committed by GitHub
parent 9fe260d5ea
commit 159137dc10
8 changed files with 14 additions and 21 deletions
-3
View File
@@ -2,7 +2,6 @@ package cli_test
import (
"bytes"
"io"
"os"
"path/filepath"
"strings"
@@ -97,8 +96,6 @@ func TestStatePush(t *testing.T) {
err = stateFile.Close()
require.NoError(t, err)
cmd, root := clitest.New(t, "state", "push", workspace.Name, stateFile.Name())
cmd.SetErr(io.Discard)
cmd.SetOut(io.Discard)
clitest.SetupConfig(t, client, root)
err = cmd.Execute()
require.NoError(t, err)