From 9694775c1d89e69946ed637899116c3c3e243847 Mon Sep 17 00:00:00 2001 From: Thilina Shashimal Senarath Date: Tue, 27 May 2025 11:56:50 +0530 Subject: [PATCH] Fix tests --- internal/config/config_test.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 20c0893..edf4182 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -136,20 +136,15 @@ func TestValidate(t *testing.T) { func TestGetMCPPaths(t *testing.T) { cfg := Config{ Paths: PathsConfig{ - SSE: "/custom-sse", - Messages: "/custom-messages", + SSE: "/custom-sse", + Messages: "/custom-messages", + StreamableHTTP: "/custom-streamable", }, } paths := cfg.GetMCPPaths() - if len(paths) != 2 { - t.Errorf("Expected 2 MCP paths, got %d", len(paths)) - } - if paths[0] != "/custom-sse" { - t.Errorf("Expected first path=/custom-sse, got %s", paths[0]) - } - if paths[1] != "/custom-messages" { - t.Errorf("Expected second path=/custom-messages, got %s", paths[1]) + if len(paths) != 3 { + t.Errorf("Expected 3 MCP paths, got %d", len(paths)) } }