From 4553ca27087a9b3920a61b0f91ae0b2c6d9b0d7e Mon Sep 17 00:00:00 2001 From: Michael Buckley Date: Fri, 5 Feb 2021 11:32:48 -0500 Subject: [PATCH] Fix expected error code. 500 is a server error. 0 is a failed connection. This should be a server error. --- .../test/java/ca/uhn/fhir/rest/client/GenericClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-structures-r5/src/test/java/ca/uhn/fhir/rest/client/GenericClientTest.java b/hapi-fhir-structures-r5/src/test/java/ca/uhn/fhir/rest/client/GenericClientTest.java index a49193ce8ea..42d677208d9 100644 --- a/hapi-fhir-structures-r5/src/test/java/ca/uhn/fhir/rest/client/GenericClientTest.java +++ b/hapi-fhir-structures-r5/src/test/java/ca/uhn/fhir/rest/client/GenericClientTest.java @@ -436,7 +436,7 @@ public class GenericClientTest { .encodedJson() .execute(); } catch (FhirClientConnectionException e) { - assertEquals(0, e.getStatusCode()); + assertEquals(500, e.getStatusCode()); assertThat(e.getMessage(), containsString("Failed to parse response from server when performing DELETE to URL")); }