Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensureReady never returns #75

Open
CMahesh opened this issue Jun 28, 2017 · 0 comments
Open

ensureReady never returns #75

CMahesh opened this issue Jun 28, 2017 · 0 comments

Comments

@CMahesh
Copy link

CMahesh commented Jun 28, 2017

Hi,
I am starting the emulator and the using the ensureReady waiting for the promise to return on emulator completing the start. But, it is not returned only.
module.exports=(function(){

var androidhelper={};

androidhelper.startEmulator = function startEmulator(avdName){
return androidctrl.start(avdName)
.then(function(){
console.log("started")
return androidctrl.waitForDevice(avdName)
});
}
}
var m = require('./index2')
m.startEmulator('Nexus_4_API_21_1')
.then(function (result) {
console.log("started")
console.log(result);

}).caught(function(err){
console.log(err)

}).error(function(err){
console.log(err)
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant