Skip to content

Commit 2cb7256

Browse files
committed
Revert expect test changes
1 parent bfe475e commit 2cb7256

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

cli/login_test.go

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1+
//go:build !windows
2+
13
package cli_test
24

35
import (
46
"testing"
57

6-
"github.com/stretchr/testify/require"
7-
88
"github.com/coder/coder/cli/clitest"
99
"github.com/coder/coder/coderd/coderdtest"
10-
<<<<<<< HEAD
11-
12-
"github.com/coder/coder/expect"
13-
||||||| df13fef
1410
"github.com/stretchr/testify/require"
15-
16-
"github.com/Netflix/go-expect"
17-
=======
18-
"github.com/stretchr/testify/require"
19-
>>>>>>> main
2011
)
2112

2213
func TestLogin(t *testing.T) {
@@ -32,21 +23,8 @@ func TestLogin(t *testing.T) {
3223
t.Run("InitialUserTTY", func(t *testing.T) {
3324
t.Parallel()
3425
client := coderdtest.New(t)
35-
<<<<<<< HEAD
36-
// The --force-tty flag is required on Windows, because the `isatty` library does not
37-
// accurately detect Windows ptys when they are not attached to a process:
38-
// https://github.com/mattn/go-isatty/issues/59
39-
root, _ := clitest.New(t, "login", client.URL.String(), "--force-tty")
40-
root.SetIn(console.InTty())
41-
root.SetOut(console.OutTty())
42-
||||||| df13fef
43-
root, _ := clitest.New(t, "login", client.URL.String())
44-
root.SetIn(console.Tty())
45-
root.SetOut(console.Tty())
46-
=======
4726
root, _ := clitest.New(t, "login", client.URL.String())
4827
console := clitest.NewConsole(t, root)
49-
>>>>>>> main
5028
go func() {
5129
err := root.Execute()
5230
require.NoError(t, err)

0 commit comments

Comments
 (0)