@nsshunt/ststestrunner 1.1.97 → 1.1.98

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