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 af2941b commit 12405aeCopy full SHA for 12405ae
cli/exp_mcp_test.go
@@ -148,10 +148,19 @@ func TestExpMcpServer(t *testing.T) {
148
pty := ptytest.New(t)
149
inv.Stdin = pty.Input()
150
inv.Stdout = pty.Output()
151
+ inv.Stderr = pty.Output()
152
clitest.SetupConfig(t, client, root)
153
- err := inv.Run()
154
- assert.ErrorContains(t, err, "are not logged in")
+ cmdDone := make(chan struct{})
155
+ go func() {
156
+ defer close(cmdDone)
157
+ err := inv.Run()
158
+ assert.NoError(t, err)
159
+ }()
160
+
161
+ pty.ExpectRegexMatch(`(?is)Authentication\s+:\s+None`)
162
+ cancel()
163
+ <-cmdDone
164
})
165
}
166
0 commit comments