1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Set a timeout on the APK version check. Old APK didn't support it which caused the check to stall.

This commit is contained in:
Simo Kinnunen 2014-03-04 20:31:38 +09:00
parent e0ab10adbd
commit 667ba512ae
2 changed files with 1 additions and 0 deletions

View file

@ -50,6 +50,7 @@ inputAgent.ensureInstalled = function(adb, serial) {
)) ))
.then(function(out) { .then(function(out) {
return streamutil.readAll(out) return streamutil.readAll(out)
.timeout(10000)
.then(function(buffer) { .then(function(buffer) {
var version = buffer.toString() var version = buffer.toString()
if (semver.satisfies(version, SUPPORTED_VERSION)) { if (semver.satisfies(version, SUPPORTED_VERSION)) {

Binary file not shown.