Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb7256 commit 3c08393Copy full SHA for 3c08393
cli/clitest/clitest.go
@@ -11,13 +11,13 @@ import (
11
"regexp"
12
"testing"
13
14
- "github.com/Netflix/go-expect"
15
"github.com/spf13/cobra"
16
"github.com/stretchr/testify/require"
17
18
"github.com/coder/coder/cli"
19
"github.com/coder/coder/cli/config"
20
"github.com/coder/coder/codersdk"
+ "github.com/coder/coder/expect"
21
"github.com/coder/coder/provisioner/echo"
22
)
23
@@ -75,8 +75,8 @@ func NewConsole(t *testing.T, cmd *cobra.Command) *expect.Console {
75
76
console, err := expect.NewConsole(expect.WithStdout(writer))
77
require.NoError(t, err)
78
- cmd.SetIn(console.Tty())
79
- cmd.SetOut(console.Tty())
+ cmd.SetIn(console.InTty())
+ cmd.SetOut(console.OutTty())
80
return console
81
}
82
0 commit comments