@nsshunt/ststestrunner 1.1.89 → 1.1.91

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.
@@ -1930,11 +1930,20 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
1930
1930
  const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
1931
1931
  const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "5");
1932
1932
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1933
- if (personRecord.text) {
1933
+ if (personRecord.text) try {
1934
1934
  const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
1935
1935
  this._CheckOutputLongDurationError(__snapshot3, "await this.DeleteResource()");
1936
1936
  return retVal.body;
1937
- } else {
1937
+ } catch (error) {
1938
+ if (axios.default.isAxiosError(error)) {
1939
+ const axiosError = error;
1940
+ if (axiosError.response) {
1941
+ if (axiosError.response.status !== StatusCodes.GONE) throw error;
1942
+ return null;
1943
+ } else throw error;
1944
+ } else throw error;
1945
+ }
1946
+ else {
1938
1947
  this.runner.instrumentData.errorCount++;
1939
1948
  return null;
1940
1949
  }