Skip to content

Commit 4fa5318

Browse files
craig[bot]knz
andcommitted
Merge #37072
37072: tests: avoid t.Parallel() when the top test has defers r=tbg,RaduBerinde a=knz Sub-tests that invoke `t.Parallel()` get to run concurrently with their parent test, and may be delayed arbitrarily past beyond the end of the termination of the parent test (including beyond the execution of its `defer` calls). This means it's unsafe to call `t.Parallel()` with e.g. `leaktest.AfterTest()`. Release note: None Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
2 parents eedee18 + 6f30625 commit 4fa5318

File tree

6 files changed

+264
-182
lines changed

6 files changed

+264
-182
lines changed

0 commit comments

Comments
 (0)