Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12405ae

Browse files
committed
chore(cli): fix test flake in TestExpMcpServer
1 parentaf2941b commit12405ae

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎cli/exp_mcp_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,19 @@ func TestExpMcpServer(t *testing.T) {
148148
pty:=ptytest.New(t)
149149
inv.Stdin=pty.Input()
150150
inv.Stdout=pty.Output()
151+
inv.Stderr=pty.Output()
151152
clitest.SetupConfig(t,client,root)
152153

153-
err:=inv.Run()
154-
assert.ErrorContains(t,err,"are not logged in")
154+
cmdDone:=make(chanstruct{})
155+
gofunc() {
156+
deferclose(cmdDone)
157+
err:=inv.Run()
158+
assert.NoError(t,err)
159+
}()
160+
161+
pty.ExpectRegexMatch(`(?is)Authentication\s+:\s+None`)
162+
cancel()
163+
<-cmdDone
155164
})
156165
}
157166

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp