From 10f568f87e9391360e002587d9f3aada05abcc14 Mon Sep 17 00:00:00 2001 From: stevef Date: Tue, 14 Apr 2026 10:23:56 +0200 Subject: [PATCH] Update mock tool registry tests for consistency --- pkg/tools/registry_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/tools/registry_test.go b/pkg/tools/registry_test.go index c5f6ed29f..c2c0daa1d 100644 --- a/pkg/tools/registry_test.go +++ b/pkg/tools/registry_test.go @@ -764,14 +764,14 @@ func TestToolRegistry_Filter_SupportsPrefix(t *testing.T) { r := NewToolRegistry() r.Register(newMockTool("read_file", "core tool")) r.Register(newMockTool("write_file", "core tool")) - r.Register(newMockTool("mcp_monday_get_items", "mcp tool")) - r.Register(newMockTool("mcp_harvest_get_entries", "mcp tool")) + r.Register(newMockTool("mcp_github_get_items", "mcp tool")) + r.Register(newMockTool("mcp_google_get_entries", "mcp tool")) r.Register(newMockTool("tool_search_regex", "discovery tool")) - whitelist := []string{"read_file", "monday", "search"} + whitelist := []string{"read_file", "github", "search"} r.Filter(whitelist, true) - // expected: read_file (exact), mcp_monday_get_items (mcp_monday_ prefix), tool_search_regex (tool_search_ prefix) + // expected: read_file (exact), mcp_github_get_items (mcp_github_ prefix), tool_search_regex (tool_search_ prefix) if r.Count() != 3 { t.Errorf("expected 3 tools after filtering, got %d: %v", r.Count(), r.List()) } @@ -779,7 +779,7 @@ func TestToolRegistry_Filter_SupportsPrefix(t *testing.T) { allowed := r.List() expected := map[string]bool{ "read_file": true, - "mcp_monday_get_items": true, + "mcp_github_get_items": true, "tool_search_regex": true, }