@nsshunt/ststestrunner 1.1.84 → 1.1.85

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.
@@ -758,11 +758,6 @@ var TestCaseFhirBase = class {
758
758
  this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): AXIOS Error Response.Status = [${axiosError.response.status}]`));
759
759
  if (axiosError.response.headers) this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): headers: [${JSON.stringify(axiosError.response.headers)}]`));
760
760
  if (axiosError.response.data) this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): data: [${JSON.stringify(axiosError.response.data)}]`));
761
- try {
762
- if (axiosError.response.config) this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): config: [${JSON.stringify(axiosError.response.config)}]`));
763
- } catch (innererror) {
764
- this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): could not get response config, error: [${innererror}]`));
765
- }
766
761
  if (axiosError.response.status === StatusCodes.UNAUTHORIZED) {
767
762
  this.runner.instrumentData.authenticationErrorCount++;
768
763
  this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): UNAUTHORIZED - Reset Access Token`));
@@ -1071,9 +1066,10 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
1071
1066
  this.runner.instrumentData.errorCount++;
1072
1067
  if (this.HandleError(error) === true) if (this.retryCount < this.maxAuthRetryCount) {
1073
1068
  this.retryCount++;
1069
+ this.runner.instrumentData.authenticationRetryCount++;
1074
1070
  const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
1075
1071
  this.Error(message);
1076
- await (0, _nsshunt_stsutils.Sleep)(2e3);
1072
+ await (0, _nsshunt_stsutils.Sleep)(this.retryCount * 1e3);
1077
1073
  return this._ExecuteQuery();
1078
1074
  } else {
1079
1075
  const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;