@nsshunt/stsrunnerframework 1.0.138 → 1.0.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1822,10 +1822,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1822
1822
  if (executionProfile) {
1823
1823
  const { iterations, duration, delayBetweenIterations, pauseOnComplete } = executionProfile;
1824
1824
  if (iterations > 0) {
1825
- if (pauseOnComplete === true) {
1826
- cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) <= iterations;
1827
- } else {
1828
- cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) < iterations;
1825
+ cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) < iterations;
1826
+ if (cont === false && pauseOnComplete === true && __privateGet(this, _runners)[runnerId].runner.state === IRunnerState.paused) {
1827
+ cont = true;
1829
1828
  }
1830
1829
  } else if (duration > 0) {
1831
1830
  cont = ((/* @__PURE__ */ new Date()).getTime() - startLoop.getTime()) / 1e3 < duration;