From 40a8b2f8e1b1fbcda4bf5fd508603e0fc3e9ab76 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 8 Jan 2017 14:02:04 +0100 Subject: vm/adb: increase battery check timeout Battery info is provided by some OS services. With KASAN/KCOV these services take long to startup. This causes episodic timeouts during battery check. Increase the timeout. --- vm/adb/adb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/adb/adb.go b/vm/adb/adb.go index 77f7489c9..d689d038c 100644 --- a/vm/adb/adb.go +++ b/vm/adb/adb.go @@ -257,7 +257,7 @@ func (inst *instance) checkBatteryLevel() error { minLevel = 20 requiredLevel = 30 ) - val, err := inst.getBatteryLevel(3) + val, err := inst.getBatteryLevel(30) if err != nil { return err } -- cgit mrf-deployment