aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-02-20 09:27:27 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-02-20 10:02:18 +0100
commit3e5ed8b45e7a561d6344a4d3d7bf3bfb8f24a7b3 (patch)
treec4ff9d20dba7b451cce70905468ab5d5febb805d
parent2cf3150e81a23334b93e80b036968c7fd583ef69 (diff)
pkg/bisect: fix number of tests for flaky repros
Fixes #2335
-rw-r--r--pkg/bisect/bisect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index d412e6007..0454cf68c 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -455,7 +455,7 @@ func (env *env) test() (*testResult, error) {
}
numTests := MaxNumTests / 2
- if env.flaky && env.numTests == 0 {
+ if env.flaky || env.numTests == 0 {
// Use twice as many instances if the bug is flaky and during initial testing
// (as we don't know yet if it's flaky or not).
numTests *= 2