Commit a431bdc7 authored by Russ Cox's avatar Russ Cox

testing: document that Skip cannot undo Error

Fixes #16502.

Change-Id: Id8e117a724d73cd51844c06d47bbeba61f8dc827
Reviewed-on: https://go-review.googlesource.com/31324Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: 's avatarMarcel van Lohuizen <mpvl@golang.org>
parent 11885695
...@@ -520,6 +520,7 @@ func (c *common) Skipf(format string, args ...interface{}) { ...@@ -520,6 +520,7 @@ func (c *common) Skipf(format string, args ...interface{}) {
} }
// SkipNow marks the test as having been skipped and stops its execution. // SkipNow marks the test as having been skipped and stops its execution.
// If a test fails (see Error, Errorf, Fail) and is then skipped, it is still considered to have failed.
// Execution will continue at the next test or benchmark. See also FailNow. // Execution will continue at the next test or benchmark. See also FailNow.
// SkipNow must be called from the goroutine running the test, not from // SkipNow must be called from the goroutine running the test, not from
// other goroutines created during the test. Calling SkipNow does not stop // other goroutines created during the test. Calling SkipNow does not stop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment