aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/repro
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-08-23 14:07:04 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-08-27 13:41:43 +0000
commitd7ca24bcef5a225f0b4bd0ee404b5650f871e61b (patch)
tree4fce4dba9ab85619cd04418fbcd4e706900d0b90 /pkg/repro
parent36293874a6c15ab8f79533163a6200aa6277757d (diff)
pkg/repro: increase the minimum testing timeouts
15 seconds is an unreasonably small timeout. Let's do at least 30 seconds first, then at least 100 seconds.
Diffstat (limited to 'pkg/repro')
-rw-r--r--pkg/repro/repro.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go
index 5f0947541..11c75af11 100644
--- a/pkg/repro/repro.go
+++ b/pkg/repro/repro.go
@@ -100,8 +100,8 @@ func prepareCtx(crashLog []byte, cfg *mgrconfig.Config, features flatrpc.Feature
crashExecutor = rep.Executor
}
testTimeouts := []time.Duration{
- 3 * cfg.Timeouts.Program, // to catch simpler crashes (i.e. no races and no hangs)
- 20 * cfg.Timeouts.Program,
+ max(30*time.Second, 3*cfg.Timeouts.Program), // to catch simpler crashes (i.e. no races and no hangs)
+ max(100*time.Second, 20*cfg.Timeouts.Program),
cfg.Timeouts.NoOutputRunningTime, // to catch "no output", races and hangs
}
switch {