Files
bifrost/core/internal/mcptests/http_only_test.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

26 lines
513 B
Go

package mcptests
import (
"testing"
)
func TestHTTP_Only_Connection(t *testing.T) {
config := GetTestConfig(t)
if config.HTTPServerURL == "" {
t.Skip("MCP_HTTP_URL not set")
}
// Only HTTP client
httpClient := GetSampleCodeModeClientConfig(t, config.HTTPServerURL)
manager := setupMCPManager(t, httpClient)
// Verify connected
clients := manager.GetClients()
if len(clients) != 1 {
t.Fatalf("Expected 1 client, got %d", len(clients))
}
t.Log("✅ HTTP-only client connected successfully")
}