golang/doc/next/6-stdlib/99-minor/testing/36532.md

141 B

The new [T.Context] and [B.Context] methods return a context that's canceled after the test completes and before test cleanup functions run.