@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.mjs
CHANGED
|
@@ -753,7 +753,6 @@ var TestCaseFhirBase = class {
|
|
|
753
753
|
let timeout = void 0;
|
|
754
754
|
let start = performance.now();
|
|
755
755
|
try {
|
|
756
|
-
if (start - this.accessTokenTime > this.newTokenLimitTime * 1e3) this.#accesssToken = null;
|
|
757
756
|
if (this.#accesssToken) return this.#accesssToken;
|
|
758
757
|
timeout = setTimeout(() => {
|
|
759
758
|
this.Warning(chalk.magenta(`TestCaseFhirBase:GetAccessToken(): Timeout: [${this._authMaxTimeout}] exceeded for getting access token ...`));
|
|
@@ -1027,7 +1026,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1027
1026
|
maxAuthRetryCount = 5;
|
|
1028
1027
|
ExecuteQuery = async () => {
|
|
1029
1028
|
this.retryCount = 0;
|
|
1030
|
-
for (let i = 0; i < 15; i++) {
|
|
1029
|
+
if (this.runner.iteration > 0) for (let i = 0; i < 15; i++) {
|
|
1031
1030
|
await Sleep(1e3);
|
|
1032
1031
|
console.log(chalk.rgb(100, 50, 100)(`Sleep count: [${i}]`));
|
|
1033
1032
|
}
|
|
@@ -1046,8 +1045,6 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1046
1045
|
return retVal.body;
|
|
1047
1046
|
} catch (error) {
|
|
1048
1047
|
this.runner.instrumentData.errorCount++;
|
|
1049
|
-
this.Error(error);
|
|
1050
|
-
console.error(error);
|
|
1051
1048
|
if (this.HandleError(error) === true) if (this.retryCount < this.maxAuthRetryCount) {
|
|
1052
1049
|
this.retryCount++;
|
|
1053
1050
|
const message = `TestCaseFhir02:ExecuteQuery(): Retry auth attempt: retryCount: [${this.retryCount}], maxAuthRetryCount: [${this.maxAuthRetryCount}]`;
|