Ignore exceptions from closing jax-rs response
MODIFY
instrumentation/jaxrs-client/jaxrs-client-2.0/jaxrs-client-2.0-common/javaagent/src/test/groovy/JaxRsClientTest.groovy
instrumentation/jaxrs-client/jaxrs-client-2.0/jaxrs-client-2.0-common/javaagent/src/test/groovy/JaxRsClientTest.groovy
@@ -40,7 +40,9 @@ abstract class JaxRsClientTest extends HttpClientTest<Invocation.Builder> implem
try {
def body = BODY_METHODS.contains(method) ? Entity.text("") : null
def response = request.build(method, body).invoke()
+ try {
response.close()
+ } catch (IOException ignore) {}
return response.status
} catch (ProcessingException exception) {
throw exception.getCause()

Ignore exceptions from closing jax-rs response (#4923)