3 ms·
Did y'all ever figure out a way to get goroutine leak detection working with parallel tests? (didn't expect to see that linked here)
by fortytw2 9y ago
Did y'all ever figure out a way to get goroutine leak detection working with parallel tests? (didn't expect to see that linked here)
- bdarnell 9y agoWe have started parallelizing our tests with the new subtest feature: leaktest in the top-level test, t.Parallel in the subtests. This means we only check for leaks in between batches of parallel subtests. This works OK for us for now since our slowest "test" is really a huge data-driven test suite, and that's the only place we're currently parallelizing, although it would be better if we could parallelize more of our tests.