From f25d78f8e216f5558885ffd2cea39b3ff1a3ff43 Mon Sep 17 00:00:00 2001 From: Carlo Alberto Ferraris Date: Fri, 2 Apr 2021 17:36:54 +0900 Subject: [PATCH] testing: clarify when Cleanup is called Change-Id: I2ed394fccec83aac09a49673554cbf504787965b Reviewed-on: https://go-review.googlesource.com/c/go/+/306810 Reviewed-by: Ian Lance Taylor Trust: Dmitri Shuralyov --- src/testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/testing.go b/src/testing/testing.go index 056a8d2879e..851b118df4f 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -876,7 +876,7 @@ func (c *common) Helper() { } } -// Cleanup registers a function to be called when the test and all its +// Cleanup registers a function to be called when the test (or subtest) and all its // subtests complete. Cleanup functions will be called in last added, // first called order. func (c *common) Cleanup(f func()) {