diff options
| author | Damien Neil <dneil@google.com> | 2025-06-20 14:44:09 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-06-20 12:29:58 -0700 |
| commit | 49cdf0c42e320dfed044baa551610f081eafb781 (patch) | |
| tree | 2517ae78483219b5937130a2d12b3237ce423636 /src/testing/testing.go | |
| parent | 3bf1eecbd30f48851c35f608aa265c978b2cf301 (diff) | |
| download | go-49cdf0c42e320dfed044baa551610f081eafb781.tar.xz | |
testing, testing/synctest: handle T.Helper in synctest bubbles
Fixes #74199
Change-Id: I6a15fbd59a3a3f8c496440f56d09d695e1504e4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/682576
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index b2d4c0c938..3475bfca4a 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -1261,6 +1261,9 @@ func (c *common) Skipped() bool { // When printing file and line information, that function will be skipped. // Helper may be called simultaneously from multiple goroutines. func (c *common) Helper() { + if c.isSynctest { + c = c.parent + } c.mu.Lock() defer c.mu.Unlock() if c.helperPCs == nil { |
