mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:53:27 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user