Skip to content

Commit f5f63d6

Browse files
authored
Added early exit from xtest.ManyTimes() on -short flag
1 parent c53d595 commit f5f63d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/xtest/manytimes.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func TestManyTimes(t testing.TB, test TestFunc, opts ...TestManyTimesOption) {
4444
// run test, then check stopAfter for guarantee run test least once
4545
runTest(t, test, &testMutex)
4646

47+
if testing.Short() {
48+
return
49+
}
50+
4751
if time.Since(start) > options.stopAfter || t.Failed() {
4852
return
4953
}

0 commit comments

Comments
 (0)