Skip to content

Commit 74ba330

Browse files
authored
Merge pull request #1384 from ydb-platform/xtest-manu-times-short
Added early exit from `xtest.TestManyTimes()` on `-short` flag
2 parents c53d595 + f5f63d6 commit 74ba330

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)