Skip to content

Commit 7a52de1

Browse files
committed
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.
1 parent 3217e5d commit 7a52de1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/mcp/mcp_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func ingestViaHandler(t *testing.T, reg *module.Registry, store event.Store, req
7272
if err := store.Store(context.Background(), ev); err != nil {
7373
t.Fatal(err)
7474
}
75+
reg.NotifyEventStored(ev)
7576
return ev.UUID
7677
}
7778
}

0 commit comments

Comments
 (0)