mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-25 00:51:28 +02:00
Two review findings on the e2e suite. lookupAccessLogBySession polled under the caller's context, so one stalled request could hold the loop open well past the 30s ingest window it exists to enforce — and the caller would read that delay as a missing row rather than a slow one. Each poll now expires with the window; the parent's cancellation still applies, since the request context derives from it. The streaming test asserted only that the total cost was positive. Input and output are positive on their own, so a cache-read bucket that was parsed and then never billed would have passed. Assert the sum of the three buckets: the gap a dropped cache read leaves is 7e-6, well outside the delta.