aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-01-05 10:25:56 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-01-05 10:53:17 +0100
commita0234d980eccaa87f5821ac8e95ed9c94a104acf (patch)
tree044f8e4a911ccdb4f10ba0b9a2d87c1a6f84f8af
parent3120545e3e1225d8f2b243349ca9abc38fea9dd1 (diff)
vm: scale "wait for output" timeout
Significant portion of oopses with qemu emulation gets truncated. Hard to say if we don't wait long enough or there is something else, but scaling "wait for output" timeout seems reasonable regardless.
-rw-r--r--vm/vm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 541096ba0..0c40ba2f3 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -323,7 +323,7 @@ func (mon *monitor) createReport(defaultError string) *report.Report {
}
func (mon *monitor) waitForOutput() {
- timer := time.NewTimer(waitForOutputTimeout)
+ timer := time.NewTimer(waitForOutputTimeout * mon.inst.timeouts.Scale)
defer timer.Stop()
for {
select {