mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:33:30 +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:
@@ -49,8 +49,8 @@ module.exports = syrup.serial()
|
||||
})
|
||||
.then(function() {
|
||||
return devutil.waitForPort(adb, options.serial, service.port)
|
||||
.timeout(10000)
|
||||
})
|
||||
.timeout(10000)
|
||||
.then(function(conn) {
|
||||
conn.end()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user