add a retry to getting available devices from instruments (fix #3796)

This commit is contained in:
Jonathan Lipps
2014-10-09 17:14:01 -07:00
parent bfe72de9ef
commit 8e3f21d49b
3 changed files with 3 additions and 3 deletions

View File

@@ -1004,7 +1004,7 @@ IOS.prototype.getBundleIdFromApp = function (cb) {
IOS.prototype.checkDeviceAvailable = function (cb) {
if (this.iOSSDKVersion >= 7.1) {
logger.debug("Checking whether instruments supports our device string");
Instruments.getAvailableDevices(function (err, availDevices) {
Instruments.getAvailableDevicesWithRetry(3, function (err, availDevices) {
var dString = this.getDeviceString();
if (err) return cb(err);
if (!_.contains(availDevices, dString)) {

View File

@@ -43,7 +43,7 @@
"adm-zip": "~0.4.4",
"appium-adb": "~1.3.17",
"appium-atoms": "~0.0.5",
"appium-instruments": "~1.4.8",
"appium-instruments": "~1.4.9",
"appium-uiauto": "~1.7.13",
"argparse": "~0.1.15",
"async": "~0.9.0",