@nsshunt/ststestrunner 1.1.92 → 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.
package/dist/ststestrunner.cjs
CHANGED
|
@@ -948,6 +948,14 @@ var TestCaseFhirBase = class {
|
|
|
948
948
|
this.retryCount = 0;
|
|
949
949
|
return this._ExecuteQuery();
|
|
950
950
|
};
|
|
951
|
+
_RetryMap = [
|
|
952
|
+
100,
|
|
953
|
+
250,
|
|
954
|
+
500,
|
|
955
|
+
1e3,
|
|
956
|
+
2e3,
|
|
957
|
+
3e3
|
|
958
|
+
];
|
|
951
959
|
_ExecuteQuery = async () => {
|
|
952
960
|
try {
|
|
953
961
|
return await this.PerformExecuteQuery();
|
|
@@ -958,7 +966,8 @@ var TestCaseFhirBase = class {
|
|
|
958
966
|
this.runner.instrumentData.authenticationRetryCount++;
|
|
959
967
|
const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
|
|
960
968
|
this.Error(message);
|
|
961
|
-
await (0, _nsshunt_stsutils.Sleep)(this.
|
|
969
|
+
if (this.retryCount > this._RetryMap.length) await (0, _nsshunt_stsutils.Sleep)(this._RetryMap[this._RetryMap.length - 1]);
|
|
970
|
+
else await (0, _nsshunt_stsutils.Sleep)(this._RetryMap[this.retryCount - 1]);
|
|
962
971
|
return await this._ExecuteQuery();
|
|
963
972
|
} else {
|
|
964
973
|
const message = `TestCaseFhir02:ExecuteQuery(): Max auth retries exceeded: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}], Error: [${error}]`;
|