mirror of
https://github.com/grafana/grafana.git
synced 2026-06-09 16:40:43 -04:00
When `response.body()` throws a Protocol error (e.g. for cached or redirect responses where CDP has no body data), the `#requestsInFlight` counter was never decremented, causing `stopListening()` to hang indefinitely and the test to time out. Wrap the async body read and sizes call in a try/finally so `#requestsInFlight` is always decremented. Also move `stopListening()` before metrics collection so all responses are captured, and await `page.close()`. |
||
|---|---|---|
| .. | ||
| axe-a11y | ||
| annotation-api-mock.ts | ||
| dashboard-helpers.ts | ||
| prometheus-helpers.ts | ||
| RequestsRecorder.ts | ||
| scope-helpers.ts | ||
| scopes.ts | ||