What is the problem you're trying to solve
Leveraging go.uber.org/goleak is a possibility.
Describe the solution you'd like
Automatically fail a test if the test itself is leaking go routines.
Ideally, also have a way to detect leakage in the tested binary.
Additional context
No response