Fix netty38 latest deps test (#5392)

This commit is contained in:
Lauri Tulmin 2022-02-17 17:29:24 +02:00 committed by GitHub
parent 9f98a0953a
commit cc60ffb6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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()
}