Skip to content

Commit

Permalink
Lower checks and steps 5x when -test.short flag is set
Browse files Browse the repository at this point in the history
See #35
  • Loading branch information
flyingmutant committed Aug 24, 2022
1 parent 110d7a5 commit dc744ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func MakeCheck(prop func(*T)) func(*testing.T) {
func checkTB(tb tb, prop func(*T)) {
tb.Helper()

if testing.Short() {
flags.checks /= 5
flags.steps /= 5
}

start := time.Now()
valid, invalid, seed, buf, err1, err2 := doCheck(tb, flags.failfile, flags.checks, baseSeed(), prop)
dt := time.Since(start)
Expand Down

0 comments on commit dc744ff

Please sign in to comment.