We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190c208 commit c5879c6Copy full SHA for c5879c6
src/testing/testing.go
@@ -17,6 +17,7 @@ import (
17
"io/fs"
18
"math/rand"
19
"os"
20
+ "runtime"
21
"strconv"
22
"strings"
23
"time"
@@ -207,9 +208,8 @@ func (c *common) Failed() bool {
207
208
// current goroutine).
209
func (c *common) FailNow() {
210
c.Fail()
-
211
c.finished = true
212
- c.Error("FailNow is incomplete, requires runtime.Goexit()")
+ runtime.Goexit()
213
}
214
215
// log generates the output.
@@ -281,7 +281,7 @@ func (c *common) Skipf(format string, args ...interface{}) {
281
func (c *common) SkipNow() {
282
c.skip()
283
284
- c.Error("SkipNow is incomplete, requires runtime.Goexit()")
285
286
287
func (c *common) skip() {
0 commit comments