@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.
@@ -755,7 +755,11 @@ var TestCaseFhirBase = class {
755
755
  let timeout = void 0;
756
756
  let start = performance.now();
757
757
  try {
758
- if (this.#accesssToken) return this.#accesssToken;
758
+ if (this.#accesssToken) {
759
+ this.Debug(`TestCaseFhirBase:GetAccessToken(): ${this.#accesssToken}`);
760
+ return this.#accesssToken;
761
+ }
762
+ this.Debug(`TestCaseFhirBase:GetAccessToken(): Getting new access token`);
759
763
  timeout = setTimeout(() => {
760
764
  this.Warning(chalk.magenta(`TestCaseFhirBase:GetAccessToken(): Timeout: [${this._authMaxTimeout}] exceeded for getting access token ...`));
761
765
  }, this._authMaxTimeout);
@@ -1088,6 +1092,7 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
1088
1092
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1089
1093
  const retVal = await client.GetResource("Person", personRecord.id);
1090
1094
  this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
1095
+ if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
1091
1096
  delete personRecord.meta;
1092
1097
  delete retVal.body.meta;
1093
1098
  const p1 = JSON.stringify(personRecord);