diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-05-20 18:53:12 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-05-20 19:40:20 +0200 |
| commit | 32ebe81cf3e222b41b03b774ce59bee2e7ec923f (patch) | |
| tree | ae20bdad248b6946682738a3869c4e898e4e6bc8 /vm/vm.go | |
| parent | 2c9280d432039ad490051c3e1ba130ee268057a6 (diff) | |
pkg/repro: fix no output timeout
We duplicated the no output timeout in the repro package,
and it got out of sync. It's not 3 mins now, but 5 mins.
Remove the duplication and fix this.
Diffstat (limited to 'vm/vm.go')
| -rw-r--r-- | vm/vm.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -225,7 +225,7 @@ func (inst *Instance) MonitorExecution(outc <-chan []byte, errc <-chan error, // in 140-280s detection delay. // So the current timeout is 5 mins (300s). // We don't want it to be too long too because it will waste time on real hangs. - if time.Since(lastExecuteTime) < noOutputTimeout { + if time.Since(lastExecuteTime) < NoOutputTimeout { break } diag, wait := inst.Diagnose() @@ -347,7 +347,7 @@ var ( beforeContext = 1024 << 10 afterContext = 128 << 10 + NoOutputTimeout = 5 * time.Minute tickerPeriod = 10 * time.Second - noOutputTimeout = 5 * time.Minute waitForOutputTimeout = 10 * time.Second ) |
