@nsshunt/ststestrunner 1.1.98 → 1.1.100

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.
@@ -586,9 +586,6 @@ var TestCaseFhirBase = class {
586
586
  get accesssToken() {
587
587
  return this.#accesssToken;
588
588
  }
589
- set accesssToken(token) {
590
- this.#accesssToken = token;
591
- }
592
589
  get runner() {
593
590
  return this.#runner;
594
591
  }
@@ -747,7 +744,12 @@ var TestCaseFhirBase = class {
747
744
  }
748
745
  };
749
746
  ResetAccessToken = () => {
747
+ console.log(chalk.default.magenta(`************************************************************************* start `));
748
+ console.log(chalk.default.magenta(`Old Token: ${this.#accesssToken}`));
750
749
  this.#accesssToken = null;
750
+ console.log(chalk.default.magenta(`New Token: ${this.#accesssToken}`));
751
+ console.log(chalk.default.magenta(`New Token: ${this.GetAccessToken()}`));
752
+ console.log(chalk.default.magenta(`************************************************************************* end `));
751
753
  };
752
754
  HandleError = (error) => {
753
755
  this.Error(chalk.default.red(`TestCaseFhirBase:HandleError(): Error: [${error}]`));
@@ -779,7 +781,10 @@ var TestCaseFhirBase = class {
779
781
  let timeout = void 0;
780
782
  let start = performance.now();
781
783
  try {
782
- if (this.#accesssToken) return this.#accesssToken;
784
+ if (this.#accesssToken) {
785
+ this.Debug(`TestCaseFhirBase:GetAccessToken(): ${this.#accesssToken}`);
786
+ return this.#accesssToken;
787
+ }
783
788
  this.Debug(`TestCaseFhirBase:GetAccessToken(): Getting new access token`);
784
789
  timeout = setTimeout(() => {
785
790
  this.Warning(chalk.default.magenta(`TestCaseFhirBase:GetAccessToken(): Timeout: [${this._authMaxTimeout}] exceeded for getting access token ...`));
@@ -1067,7 +1072,7 @@ var TestCaseFhir01 = class extends TestCaseFhirQueryBase {
1067
1072
  const __snapshot1 = performance.now();
1068
1073
  await this.GetAccessToken();
1069
1074
  this._CheckOutputLongDurationError(__snapshot1, "await this.GetAccessToken()");
1070
- this.accesssToken = null;
1075
+ this.ResetAccessToken();
1071
1076
  return null;
1072
1077
  };
1073
1078
  };