(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func TestConnectAll_ConnectionFailure(t *testing.T) { |
| 176 | t.Parallel() |
| 177 | ctx := context.Background() |
| 178 | logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}) |
| 179 | |
| 180 | cfg := makeConfig("bad", "http://127.0.0.1:0/does-not-exist") |
| 181 | |
| 182 | tools, cleanup := mcpclient.ConnectAll(ctx, logger, []database.MCPServerConfig{cfg}, nil, uuid.Nil, nil, nil) |
| 183 | t.Cleanup(cleanup) |
| 184 | |
| 185 | assert.Empty(t, tools, "no tools should be returned for an unreachable server") |
| 186 | } |
| 187 | |
| 188 | func TestConnectAll_MultipleServers(t *testing.T) { |
| 189 | t.Parallel() |
nothing calls this directly
no test coverage detected