@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.
package/dist/ststestrunner.mjs
CHANGED
|
@@ -1906,11 +1906,20 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
|
|
|
1906
1906
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1907
1907
|
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "5");
|
|
1908
1908
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1909
|
-
if (personRecord.text) {
|
|
1909
|
+
if (personRecord.text) try {
|
|
1910
1910
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
|
|
1911
1911
|
this._CheckOutputLongDurationError(__snapshot3, "await this.DeleteResource()");
|
|
1912
1912
|
return retVal.body;
|
|
1913
|
-
}
|
|
1913
|
+
} catch (error) {
|
|
1914
|
+
if (axios.isAxiosError(error)) {
|
|
1915
|
+
const axiosError = error;
|
|
1916
|
+
if (axiosError.response) {
|
|
1917
|
+
if (axiosError.response.status !== StatusCodes.GONE) throw error;
|
|
1918
|
+
return null;
|
|
1919
|
+
} else throw error;
|
|
1920
|
+
} else throw error;
|
|
1921
|
+
}
|
|
1922
|
+
else {
|
|
1914
1923
|
this.runner.instrumentData.errorCount++;
|
|
1915
1924
|
return null;
|
|
1916
1925
|
}
|