• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 22965178125

11 Mar 2026 05:15PM UTC coverage: 64.036% (-0.06%) from 64.093%
22965178125

push

github

web-flow
Fix flaky E2E lifecycle tests: tool discovery race (#4107)

Fix flaky E2E lifecycle tests: tool discovery race condition

Move tool-name assertions inside Eventually retry loops so tests
retry with new MCP sessions until all backends are fully discovered.

The root cause is that tool discovery is session-scoped: when a
backend isn't ready when a session is created, it's silently skipped,
producing incomplete tool lists. Tests then fail because they assert
on specific tool names outside the retry loop (or have no retry at
all).

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

47975 of 74919 relevant lines covered (64.04%)

73.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.58
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc