Repository navigation
fix(api): fix inverted check in ready endpoint - #2296
WitteShadovv wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
GET /api/v1/ready returned "portmaster is not ready" (425) when Portmaster was ready, and "Portmaster is ready." while it was still starting. Nothing in the UI calls it at the moment (DebugAPI.ready() is unused), so this only affects external tools that wait for Portmaster to finish starting.
53e7faf to
3e02475
Compare
GET /api/v1/readyreturned "portmaster is not ready" (425) when Portmaster was ready, and "Portmaster is ready." while it was still starting. The check inready()was inverted.Nothing in the UI calls it at the moment (
DebugAPI.ready()is unused), so this only affects external tools that wait for Portmaster to finish starting.Testing: added
TestReadyEndpoint, which fails without the fix;go test ./base/api/andgo vetpass.Summary by CodeRabbit