From 7a52de1d9fab9d2cd0459a8c733cc24b57137cb9 Mon Sep 17 00:00:00 2001 From: butschster Date: Fri, 10 Apr 2026 00:43:26 +0400 Subject: [PATCH] fix: call NotifyEventStored in MCP profiler test After PR #328 moved storeProfile from Handle() to OnEventStored(), the MCP test's ingestViaHandler helper no longer populated profiler-specific tables. Add the missing NotifyEventStored call to match the real HTTP server flow. --- internal/mcp/mcp_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/mcp/mcp_test.go b/internal/mcp/mcp_test.go index d6b1e31..3ebf403 100644 --- a/internal/mcp/mcp_test.go +++ b/internal/mcp/mcp_test.go @@ -72,6 +72,7 @@ func ingestViaHandler(t *testing.T, reg *module.Registry, store event.Store, req if err := store.Store(context.Background(), ev); err != nil { t.Fatal(err) } + reg.NotifyEventStored(ev) return ev.UUID } }