File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
"io/fs"
18
18
"math/rand"
19
19
"os"
20
+ "runtime"
20
21
"strconv"
21
22
"strings"
22
23
"time"
@@ -207,9 +208,8 @@ func (c *common) Failed() bool {
207
208
// current goroutine).
208
209
func (c * common ) FailNow () {
209
210
c .Fail ()
210
-
211
211
c .finished = true
212
- c . Error ( "FailNow is incomplete, requires runtime.Goexit()" )
212
+ runtime .Goexit ()
213
213
}
214
214
215
215
// log generates the output.
@@ -280,8 +280,9 @@ func (c *common) Skipf(format string, args ...interface{}) {
280
280
// by calling runtime.Goexit.
281
281
func (c * common ) SkipNow () {
282
282
c .skip ()
283
+ c .skipped = true
283
284
c .finished = true
284
- c . Error ( "SkipNow is incomplete, requires runtime.Goexit()" )
285
+ runtime .Goexit ()
285
286
}
286
287
287
288
func (c * common ) skip () {
You can’t perform that action at this time.
0 commit comments