mirror of
https://github.com/openstf/stf
synced 2025-10-06 12:00:08 +02:00
Promise.timeout() doesn't stack (i.e. foo.timeout(1000).timeout(1000) doesn't mean "wait 1000ms, then another 1000ms", it means that we have two 1000ms timeouts running at the same time). Fix places where it could be a problem.
This commit is contained in:
parent
24620076b3
commit
a4a0a62a66
7 changed files with 26 additions and 25 deletions
|
@ -101,8 +101,8 @@ module.exports = syrup.serial()
|
|||
)
|
||||
sendProgress('installing_app', guesstimate)
|
||||
})
|
||||
.timeout(30000)
|
||||
})
|
||||
.timeout(30000)
|
||||
.then(function() {
|
||||
if (message.launchActivity) {
|
||||
log.info(
|
||||
|
@ -113,9 +113,9 @@ module.exports = syrup.serial()
|
|||
// Progress 90%
|
||||
sendProgress('launching_app', 90)
|
||||
return adb.startActivity(options.serial, message.launchActivity)
|
||||
.timeout(15000)
|
||||
}
|
||||
})
|
||||
.timeout(15000)
|
||||
.then(function() {
|
||||
push.send([
|
||||
channel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue