diff --git a/core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java b/core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java index e9787677f4b..632df308e99 100644 --- a/core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java +++ b/core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java @@ -68,17 +68,10 @@ public class NettyHttpRequestSizeLimitIT extends ESIntegTestCase { } @SuppressWarnings("unchecked") - Tuple[] requests = new Tuple[] { - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest), - Tuple.tuple("/index/type/_bulk", bulkRequest) - }; + Tuple[] requests = new Tuple[150]; + for (int i = 0; i < requests.length; i++) { + requests[i] = Tuple.tuple("/index/type/_bulk", bulkRequest); + } HttpServerTransport httpServerTransport = internalCluster().getInstance(HttpServerTransport.class); InetSocketTransportAddress inetSocketTransportAddress = (InetSocketTransportAddress) randomFrom(httpServerTransport.boundAddress