@@ -13,7 +13,6 @@ import (
13
13
14
14
func TestLogin (t * testing.T ) {
15
15
t .Parallel ()
16
-
17
16
t .Run ("InitialUserNoTTY" , func (t * testing.T ) {
18
17
t .Parallel ()
19
18
client := coderdtest .New (t , nil )
@@ -29,7 +28,7 @@ func TestLogin(t *testing.T) {
29
28
// accurately detect Windows ptys when they are not attached to a process:
30
29
// https://github.com/mattn/go-isatty/issues/59
31
30
doneChan := make (chan struct {})
32
- root , _ := clitest .New (t , "login" , client .URL .String ())
31
+ root , _ := clitest .New (t , "login" , "--force-tty" , client .URL .String ())
33
32
pty := ptytest .New (t )
34
33
root .SetIn (pty .Input ())
35
34
root .SetOut (pty .Output ())
@@ -61,7 +60,7 @@ func TestLogin(t *testing.T) {
61
60
coderdtest .CreateFirstUser (t , client )
62
61
63
62
doneChan := make (chan struct {})
64
- root , _ := clitest .New (t , "login" , client .URL .String (), "--no-open" )
63
+ root , _ := clitest .New (t , "login" , "--force-tty" , client .URL .String (), "--no-open" )
65
64
pty := ptytest .New (t )
66
65
root .SetIn (pty .Input ())
67
66
root .SetOut (pty .Output ())
0 commit comments