1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 12:00:08 +02:00

Increase installation timeout and make sure that there's a separate timeout if there's a need to uninstall first.

This commit is contained in:
Simo Kinnunen 2014-07-25 17:52:24 +09:00
parent c76620727e
commit 65fc9a28eb

View file

@ -97,6 +97,7 @@ module.exports = syrup.serial()
sendProgress('installing_app', guesstimate)
return promiseutil.periodicNotify(
adb.installRemote(options.serial, apk)
.timeout(60000)
.catch(function(err) {
switch (err.code) {
case 'INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES':
@ -105,11 +106,13 @@ module.exports = syrup.serial()
, pkg
)
return adb.uninstall(options.serial, pkg)
.timeout(15000)
.then(function() {
return adb.installRemote(options.serial, apk)
.timeout(60000)
})
default:
throw err
return Promise.reject(err)
}
})
, 250
@ -121,7 +124,6 @@ module.exports = syrup.serial()
)
sendProgress('installing_app', guesstimate)
})
.timeout(35000)
})
.then(function() {
if (message.launch) {