Ian Lance Taylor submitted this change.
testing: clarify when Cleanup is called
Change-Id: I2ed394fccec83aac09a49673554cbf504787965b
Reviewed-on: https://go-review.googlesource.com/c/go/+/306810
Reviewed-by: Ian Lance Taylor <ia...@golang.org>
Trust: Dmitri Shuralyov <dmit...@golang.org>
---
M src/testing/testing.go
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 056a8d2..851b118 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -876,7 +876,7 @@
}
}
-// 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()) {
To view, visit change 306810. To unsubscribe, or for help writing mail filters, visit settings.