mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Add timeouts everywhere. Should help if the ADB socket gets stuck like it sometimes does.
This commit is contained in:
@@ -49,6 +49,7 @@ module.exports = syrup.serial()
|
||||
var target = '/data/local/tmp/_app.apk'
|
||||
|
||||
return adb.push(options.serial, source, target)
|
||||
.timeout(10000)
|
||||
.then(function(transfer) {
|
||||
var resolver = Promise.defer()
|
||||
|
||||
@@ -93,6 +94,7 @@ module.exports = syrup.serial()
|
||||
sendProgress('Installing app', 80)
|
||||
return adb.installRemote(options.serial, apk)
|
||||
})
|
||||
.timeout(10000)
|
||||
.then(function() {
|
||||
if (message.launchActivity) {
|
||||
log.info(
|
||||
@@ -105,6 +107,7 @@ module.exports = syrup.serial()
|
||||
return adb.startActivity(options.serial, message.launchActivity)
|
||||
}
|
||||
})
|
||||
.timeout(15000)
|
||||
.then(function() {
|
||||
push.send([
|
||||
channel
|
||||
|
||||
Reference in New Issue
Block a user