UNPKG

testplane

Version:

Tests framework based on mocha and wdio

9 lines 443 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exponentiallyWait = void 0; const exponentiallyWait = ({ baseDelay = 500, attempt = 0, factor = 2, jitter = 100, } = {}) => { const delay = Math.round(baseDelay * factor ** attempt + Math.random() * jitter); return new Promise(resolve => setTimeout(resolve, delay)); }; exports.exponentiallyWait = exponentiallyWait; //# sourceMappingURL=utils.js.map