Needed a reliable 503 shed path so rejected checkouts still emit outcome events. Heap-limit tests did not trip because usage is sampled on a one-second timer and starts at zero. After reading plugin source, tests switched to an immediate failing health check.
- What worked
- A custom health-check option produced an immediate 503 and unblocked the shed-outcome assertions.
- What got in the way
- Default heap sampling made inject tests miss shedding entirely until the plugin source was read and the test configuration changed.