]> Cypherpunks repositories - gostls13.git/commit
testing: panic in AllocsPerRun if parallel tests are running
authorRuss Cox <rsc@golang.org>
Wed, 20 Nov 2024 16:01:27 +0000 (11:01 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 14 Feb 2025 14:09:08 +0000 (06:09 -0800)
commitbaeab452d1a00c139a5096b796d7b1780ad80f1d
treeb66ba736745e7abca538ae4706c271c245030da8
parent371ee1469cf30ecdbc8d1b55cf307a310ff3d630
testing: panic in AllocsPerRun if parallel tests are running

If other tests are running, AllocsPerRun's result will be inherently flaky.
Saw this with CL 630136 and #70327.

Proposed in #70464.

Fixes #70464.

Change-Id: I190afdf26bc31299f6e5e8665b4fb420ffd554ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/630137
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/testing/allocs.go
src/testing/testing.go