@nsshunt/ststestrunner 1.1.83 → 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.
@@ -734,11 +734,6 @@ var TestCaseFhirBase = class {
734
734
  this.Error(chalk.red(`TestCaseFhirBase:HandleError(): AXIOS Error Response.Status = [${axiosError.response.status}]`));
735
735
  if (axiosError.response.headers) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): headers: [${JSON.stringify(axiosError.response.headers)}]`));
736
736
  if (axiosError.response.data) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): data: [${JSON.stringify(axiosError.response.data)}]`));
737
- try {
738
- if (axiosError.response.config) this.Error(chalk.red(`TestCaseFhirBase:HandleError(): config: [${JSON.stringify(axiosError.response.config)}]`));
739
- } catch (innererror) {
740
- this.Error(chalk.red(`TestCaseFhirBase:HandleError(): could not get response config, error: [${innererror}]`));
741
- }
742
737
  if (axiosError.response.status === StatusCodes.UNAUTHORIZED) {
743
738
  this.runner.instrumentData.authenticationErrorCount++;
744
739
  this.Error(chalk.red(`TestCaseFhirBase:HandleError(): UNAUTHORIZED - Reset Access Token`));
@@ -1045,13 +1040,12 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
1045
1040
  return retVal.body;
1046
1041
  } catch (error) {
1047
1042
  this.runner.instrumentData.errorCount++;
1048
- this.Error(error);
1049
- console.error(error);
1050
1043
  if (this.HandleError(error) === true) if (this.retryCount < this.maxAuthRetryCount) {
1051
1044
  this.retryCount++;
1045
+ this.runner.instrumentData.authenticationRetryCount++;
1052
1046
  const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
1053
1047
  this.Error(message);
1054
- await Sleep(2e3);
1048
+ await Sleep(this.retryCount * 1e3);
1055
1049
  return this._ExecuteQuery();
1056
1050
  } else {
1057
1051
  const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;