mirror of
https://github.com/appium/appium.git
synced 2026-02-21 18:59:08 -06:00
add a retry to getting available devices from instruments (fix #3796)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Submodule submodules/appium-instruments updated: 9f81f87e30...c7ca179636
Reference in New Issue
Block a user