Disable connection pooling in netty38 tests (#5384)

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

View File

@ -27,6 +27,8 @@ 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)