Scope the goroutine-leak assertions to pdbmux's own goroutines #22

Merged
benvin merged 1 commits from benvin/e2e-goroutine-flake into main 2026-09-07 20:02:16 +10:00

1 Commits

Author SHA1 Message Date
unkin-agent c6a5e5fcd5 Count only pdbmux's own goroutines in the leak assertions
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Asserting an absolute runtime.NumGoroutine() fails roughly one run in
three under -tags e2e, where the harness keeps a live server, its prober
and testcontainers goroutines alive alongside these tests.

- Match goroutine stacks naming the flight group, fan-out or prober
- Derive those frame names from method expressions
- Compare against a baseline sampled the same way
- Poll the prober's settle check instead of sampling it once
2026-09-07 17:56:01 +10:00