1
+ //go:build !windows
2
+
1
3
package cli_test
2
4
3
5
import (
4
6
"testing"
5
7
6
- "github.com/stretchr/testify/require"
7
-
8
8
"github.com/coder/coder/cli/clitest"
9
9
"github.com/coder/coder/coderd/coderdtest"
10
- << << << < HEAD
11
-
12
- "github.com/coder/coder/expect"
13
- || || || | df13fef
14
10
"github.com/stretchr/testify/require"
15
-
16
- "github.com/Netflix/go-expect"
17
- == == == =
18
- "github.com/stretchr/testify/require"
19
- >> >> >> > main
20
11
)
21
12
22
13
func TestLogin (t * testing.T ) {
@@ -32,21 +23,8 @@ func TestLogin(t *testing.T) {
32
23
t .Run ("InitialUserTTY" , func (t * testing.T ) {
33
24
t .Parallel ()
34
25
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
- == == == =
47
26
root , _ := clitest .New (t , "login" , client .URL .String ())
48
27
console := clitest .NewConsole (t , root )
49
- >> >> >> > main
50
28
go func () {
51
29
err := root .Execute ()
52
30
require .NoError (t , err )
0 commit comments