node-simctl
Advanced tools
Comparing version 3.3.2 to 3.3.3
@@ -244,3 +244,4 @@ 'use strict'; | ||
function createDevice(name, deviceTypeId, runtimeId) { | ||
var udid, out; | ||
var timeout = arguments.length <= 3 || arguments[3] === undefined ? 10000 : arguments[3]; | ||
var udid, out, retries; | ||
return _regeneratorRuntime.async(function createDevice$(context$1$0) { | ||
@@ -274,4 +275,5 @@ var _this3 = this; | ||
case 11: | ||
context$1$0.next = 13; | ||
return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(10, 1000, function callee$1$0() { | ||
retries = timeout / 1000; | ||
context$1$0.next = 14; | ||
return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(retries, 1000, function callee$1$0() { | ||
var devices, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, deviceArr, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, device; | ||
@@ -414,6 +416,6 @@ | ||
case 13: | ||
case 14: | ||
return context$1$0.abrupt('return', udid); | ||
case 14: | ||
case 15: | ||
case 'end': | ||
@@ -440,3 +442,4 @@ return context$1$0.stop(); | ||
function eraseDevice(udid) { | ||
var loopFn; | ||
var timeout = arguments.length <= 1 || arguments[1] === undefined ? 1000 : arguments[1]; | ||
var loopFn, retries; | ||
return _regeneratorRuntime.async(function eraseDevice$(context$1$0) { | ||
@@ -461,6 +464,7 @@ var _this4 = this; | ||
context$1$0.next = 3; | ||
return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(5, 200, loopFn)); | ||
retries = timeout / 200; | ||
context$1$0.next = 4; | ||
return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(retries, 200, loopFn)); | ||
case 3: | ||
case 4: | ||
case 'end': | ||
@@ -695,2 +699,2 @@ return context$1$0.stop(); | ||
// otherwise return all the sdk -> device mappings. | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9zaW1jdGwuanMiXSwibmFtZXMiOltdL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,4 +12,2 @@ /* global it:true, describe:true*/ | ||
var _this = this; | ||
var _chai = require('chai'); | ||
@@ -28,2 +26,5 @@ | ||
describe('simctl', function () { | ||
var _this = this; | ||
this.timeout(20000); // enough time to allow the functions to themselves time out | ||
var randName = undefined; | ||
@@ -300,2 +301,2 @@ var randDeviceUdid = null; | ||
// give it 5 tries | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3Qvc2ltY3RsLXNwZWNzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7b0JBR2lCLE1BQU07Ozs7c0JBQ1QsUUFBUTs7OzsyQkFDOEMsa0JBQWtCOztBQUd0RixJQUFNLE1BQU0sR0FBRyxrQkFBSyxNQUFNLEVBQUUsQ0FBQzs7QUFFN0IsUUFBUSxDQUFDLFFBQVEsRUFBRSxZQUFNO0FBQ3ZCLE1BQUksUUFBUSxZQUFBLENBQUM7QUFDYixNQUFJLGNBQWMsR0FBRyxJQUFJLENBQUM7QUFDMUIsTUFBSSxTQUFTLEdBQUcsRUFBRSxDQUFDOztBQUVuQixRQUFNLENBQUM7UUFDRCxPQUFPLEVBUUYsQ0FBQyxFQUNKLE9BQU8sRUFHUCxTQUFTLGtGQUNKLElBQUk7Ozs7OzsyQ0FiSyw4QkFBWTs7O0FBQTVCLGlCQUFPOztBQUNYLG1CQUFTLEdBQUcsb0JBQUUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDOztjQUN2QixTQUFTLENBQUMsTUFBTTs7Ozs7Z0JBQ2IsSUFBSSxLQUFLLENBQUMsZUFBZSxDQUFDOzs7QUFLekIsV0FBQyxHQUFHLENBQUM7OztnQkFBRSxDQUFDLEdBQUcsQ0FBQyxDQUFBOzs7OztBQUNmLGlCQUFPLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDO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m9yZSArIDEpO1xuICAgIGRlbGV0ZURldmljZSh1ZGlkKTtcbiAgfSk7XG5cbn0pO1xuIl19 |
@@ -70,3 +70,3 @@ import { exec, SubProcess } from 'teen_process'; | ||
async function createDevice (name:string, deviceTypeId:string, | ||
runtimeId:string):void { | ||
runtimeId:string, timeout:int = 10000):void { | ||
let udid; | ||
@@ -86,3 +86,4 @@ try { | ||
// make sure that it gets out of the "Creating" state | ||
await retryInterval(10, 1000, async () => { | ||
let retries = timeout / 1000; | ||
await retryInterval(retries, 1000, async () => { | ||
let devices = await getDevices(); | ||
@@ -111,3 +112,3 @@ for (let deviceArr of _.values(devices)) { | ||
async function eraseDevice (udid:string):void { | ||
async function eraseDevice (udid:string, timeout:int = 1000):void { | ||
let loopFn:Function = async () => { | ||
@@ -117,3 +118,4 @@ await simExec('erase', 2000, [udid]); | ||
// retry erase with a sleep in between because it's flakey | ||
await retryInterval(5, 200, loopFn); | ||
let retries = timeout / 200; | ||
await retryInterval(retries, 200, loopFn); | ||
} | ||
@@ -120,0 +122,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.0", |
@@ -11,3 +11,4 @@ /* global it:true, describe:true*/ | ||
describe('simctl', () => { | ||
describe('simctl', function () { | ||
this.timeout(20000); // enough time to allow the functions to themselves time out | ||
let randName; | ||
@@ -14,0 +15,0 @@ let randDeviceUdid = null; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66664
1014