@nsshunt/ststestrunner 1.1.97 → 1.1.99

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.
@@ -779,7 +779,11 @@ var TestCaseFhirBase = class {
779
779
  let timeout = void 0;
780
780
  let start = performance.now();
781
781
  try {
782
- if (this.#accesssToken) return this.#accesssToken;
782
+ if (this.#accesssToken) {
783
+ this.Debug(`TestCaseFhirBase:GetAccessToken(): ${this.#accesssToken}`);
784
+ return this.#accesssToken;
785
+ }
786
+ this.Debug(`TestCaseFhirBase:GetAccessToken(): Getting new access token`);
783
787
  timeout = setTimeout(() => {
784
788
  this.Warning(chalk.default.magenta(`TestCaseFhirBase:GetAccessToken(): Timeout: [${this._authMaxTimeout}] exceeded for getting access token ...`));
785
789
  }, this._authMaxTimeout);
@@ -1112,6 +1116,7 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
1112
1116
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1113
1117
  const retVal = await client.GetResource("Person", personRecord.id);
1114
1118
  this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
1119
+ if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
1115
1120
  delete personRecord.meta;
1116
1121
  delete retVal.body.meta;
1117
1122
  const p1 = JSON.stringify(personRecord);