Skip to content

Commit

Permalink
testing: clarify when Cleanup is called
Browse files Browse the repository at this point in the history
Change-Id: I2ed394fccec83aac09a49673554cbf504787965b
Reviewed-on: https://go-review.googlesource.com/c/go/+/306810
Reviewed-by: Ian Lance Taylor <[email protected]>
Trust: Dmitri Shuralyov <[email protected]>
  • Loading branch information
CAFxX authored and ianlancetaylor committed Apr 2, 2021
1 parent 35a8bbc commit f25d78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit f25d78f

Please sign in to comment.