Fix netty38 latest deps test (#5392)
This commit is contained in:
parent
9f98a0953a
commit
cc60ffb6e0
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue