Fix CLI test failures for SSE/HTTP transport configs

- Pass URL as command for SSE/HTTP configs instead of empty string
- Update runCli to pass transport type flag when needed
- Update tests to expect connection errors for non-existent SSE/HTTP servers
This commit is contained in:
Felix Weinberger 2025-08-05 14:21:18 +01:00
commit 195f79076e
No known key found for this signature in database

View file

@ -744,8 +744,8 @@ async function runTests() {
"tools/list",
);
// Test 26: Config with SSE transport type (CLI mode)
await runBasicTest(
// Test 26: Config with SSE transport type (CLI mode) - expects connection error
await runErrorTest(
"config_sse_type_cli",
"--config",
sseConfigPath,
@ -756,8 +756,8 @@ async function runTests() {
"tools/list",
);
// Test 27: Config with streamable-http transport type (CLI mode)
await runBasicTest(
// Test 27: Config with streamable-http transport type (CLI mode) - expects connection error
await runErrorTest(
"config_http_type_cli",
"--config",
httpConfigPath,