CB-14165 Emulator: handle "device still connecting" error (#457)

Keep waiting for emulator when connection fails with "device still connecting" error
This commit is contained in:
Rizal M. S 2018-06-25 13:44:37 +07:00 committed by Raphael von der Grün
parent e9750b5cab
commit 46a036ef26

View File

@ -342,7 +342,8 @@ module.exports.wait_for_emulator = function (port) {
}, function (error) {
if ((error && error.message &&
(error.message.indexOf('not found') > -1)) ||
(error.message.indexOf('device offline') > -1)) {
(error.message.indexOf('device offline') > -1) ||
(error.message.indexOf('device still connecting') > -1)) {
// emulator not yet started, continue waiting
return self.wait_for_emulator(port);
} else {