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