TestConnectAll_DisabledServer verifies that disabled configs are silently skipped.
(t *testing.T)
| 432 | // TestConnectAll_DisabledServer verifies that disabled configs are |
| 433 | // silently skipped. |
| 434 | func TestConnectAll_DisabledServer(t *testing.T) { |
| 435 | t.Parallel() |
| 436 | ctx := context.Background() |
| 437 | logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}) |
| 438 | |
| 439 | ts := newTestMCPServer(t, echoTool()) |
| 440 | |
| 441 | cfg := makeConfig("disabled", ts.URL) |
| 442 | cfg.Enabled = false |
| 443 | |
| 444 | tools, cleanup := mcpclient.ConnectAll(ctx, logger, []database.MCPServerConfig{cfg}, nil, uuid.Nil, nil, nil) |
| 445 | t.Cleanup(cleanup) |
| 446 | assert.Empty(t, tools) |
| 447 | } |
| 448 | |
| 449 | // TestConnectAll_CallToolInvalidInput verifies that malformed JSON |
| 450 | // input returns an error response rather than a Go error. |
nothing calls this directly
no test coverage detected