@nsshunt/ststestrunner 1.1.82 → 1.1.84
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
|
@@ -777,7 +777,6 @@ var TestCaseFhirBase = class {
|
|
|
777
777
|
let timeout = void 0;
|
|
778
778
|
let start = performance.now();
|
|
779
779
|
try {
|
|
780
|
-
if (start - this.accessTokenTime > this.newTokenLimitTime * 1e3) this.#accesssToken = null;
|
|
781
780
|
if (this.#accesssToken) return this.#accesssToken;
|
|
782
781
|
timeout = setTimeout(() => {
|
|
783
782
|
this.Warning(chalk.default.magenta(`TestCaseFhirBase:GetAccessToken(): Timeout: [${this._authMaxTimeout}] exceeded for getting access token ...`));
|
|
@@ -1051,7 +1050,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1051
1050
|
maxAuthRetryCount = 5;
|
|
1052
1051
|
ExecuteQuery = async () => {
|
|
1053
1052
|
this.retryCount = 0;
|
|
1054
|
-
for (let i = 0; i < 15; i++) {
|
|
1053
|
+
if (this.runner.iteration > 0) for (let i = 0; i < 15; i++) {
|
|
1055
1054
|
await (0, _nsshunt_stsutils.Sleep)(1e3);
|
|
1056
1055
|
console.log(chalk.default.rgb(100, 50, 100)(`Sleep count: [${i}]`));
|
|
1057
1056
|
}
|
|
@@ -1070,8 +1069,6 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1070
1069
|
return retVal.body;
|
|
1071
1070
|
} catch (error) {
|
|
1072
1071
|
this.runner.instrumentData.errorCount++;
|
|
1073
|
-
this.Error(error);
|
|
1074
|
-
console.error(error);
|
|
1075
1072
|
if (this.HandleError(error) === true) if (this.retryCount < this.maxAuthRetryCount) {
|
|
1076
1073
|
this.retryCount++;
|
|
1077
1074
|
const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
|