This commit is contained in:
afjcjsbx
2026-04-15 19:48:44 +02:00
parent 276f5425f0
commit e5a6960078
+4 -2
View File
@@ -197,10 +197,12 @@ func TestBuiltinListMCP_UsesRuntimeServerStatus(t *testing.T) {
if res.Outcome != OutcomeHandled {
t.Fatalf("/list mcp: outcome=%v, want=%v", res.Outcome, OutcomeHandled)
}
if !strings.Contains(reply, "- `filesystem`\n Enabled: yes\n Deferred: yes\n Connected: no\n Active tools: unavailable") {
if !strings.Contains(reply, "- `filesystem`\n Enabled: yes\n Deferred: yes\n "+
"Connected: no\n Active tools: unavailable") {
t.Fatalf("/list mcp reply=%q, want formatted filesystem block", reply)
}
if !strings.Contains(reply, "- `github`\n Enabled: yes\n Deferred: no\n Connected: yes\n Active tools: 3") {
if !strings.Contains(reply, "- `github`\n Enabled: yes\n Deferred: no\n "+
"Connected: yes\n Active tools: 3") {
t.Fatalf("/list mcp reply=%q, want formatted github block", reply)
}
}