Fix netty38 latest deps test
MODIFY
instrumentation/netty/netty-3.8/javaagent/src/test/groovy/Netty38ClientTest.groovy
instrumentation/netty/netty-3.8/javaagent/src/test/groovy/Netty38ClientTest.groovy
@@ -27,8 +27,6 @@ class Netty38ClientTest extends HttpClientTest<Request> implements AgentTestTrai
def getClientConfig() {
def builder = new AsyncHttpClientConfig.Builder()
.setUserAgent("test-user-agent")
- // with connection pooling is enabled there are occasional failures in high concurrency test
- .setAllowPoolingConnection(false)
if (builder.metaClass.getMetaMethod("setConnectTimeout", int) != null) {
builder.setConnectTimeout(CONNECT_TIMEOUT_MS)
@@ -45,6 +43,12 @@ class Netty38ClientTest extends HttpClientTest<Request> implements AgentTestTrai
} else {
builder.setMaximumNumberOfRedirects(3)
}
+ // with connection pooling is enabled there are occasional failures in high concurrency test
+ if (builder.metaClass.getMetaMethod("setAllowPoolingConnections", boolean) != null) {
+ builder.setAllowPoolingConnections(false)
+ } else {
+ builder.setAllowPoolingConnection(false)
+ }
return builder.build()
}

Fix netty38 latest deps test (#5392)