Skip to content

Commit 3c08393

Browse files
committed
Update clitest to use cross-platform expect
1 parent 2cb7256 commit 3c08393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/clitest/clitest.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import (
1111
"regexp"
1212
"testing"
1313

14-
"github.com/Netflix/go-expect"
1514
"github.com/spf13/cobra"
1615
"github.com/stretchr/testify/require"
1716

1817
"github.com/coder/coder/cli"
1918
"github.com/coder/coder/cli/config"
2019
"github.com/coder/coder/codersdk"
20+
"github.com/coder/coder/expect"
2121
"github.com/coder/coder/provisioner/echo"
2222
)
2323

@@ -75,8 +75,8 @@ func NewConsole(t *testing.T, cmd *cobra.Command) *expect.Console {
7575

7676
console, err := expect.NewConsole(expect.WithStdout(writer))
7777
require.NoError(t, err)
78-
cmd.SetIn(console.Tty())
79-
cmd.SetOut(console.Tty())
78+
cmd.SetIn(console.InTty())
79+
cmd.SetOut(console.OutTty())
8080
return console
8181
}
8282

0 commit comments

Comments
 (0)