@nsshunt/ststestrunner 1.1.93 → 1.1.94

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.
@@ -924,6 +924,14 @@ var TestCaseFhirBase = class {
924
924
  this.retryCount = 0;
925
925
  return this._ExecuteQuery();
926
926
  };
927
+ _RetryMap = [
928
+ 100,
929
+ 250,
930
+ 500,
931
+ 1e3,
932
+ 2e3,
933
+ 3e3
934
+ ];
927
935
  _ExecuteQuery = async () => {
928
936
  try {
929
937
  return await this.PerformExecuteQuery();
@@ -934,7 +942,8 @@ var TestCaseFhirBase = class {
934
942
  this.runner.instrumentData.authenticationRetryCount++;
935
943
  const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
936
944
  this.Error(message);
937
- await Sleep(this.retryCount * 1e3);
945
+ if (this.retryCount > this._RetryMap.length) await Sleep(this._RetryMap[this._RetryMap.length - 1]);
946
+ else await Sleep(this._RetryMap[this.retryCount - 1]);
938
947
  return await this._ExecuteQuery();
939
948
  } else {
940
949
  const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;