浏览代码

Increase breaker limit in NettyHttpRequestSizeLimitIT

With the previous breaker limit spurious failures on transport level
can happen in the test. With the new limit we ensure that the breaker
breaks due to a too large HTTP request instead.
Daniel Mitterdorfer 9 年之前
父节点
当前提交
c22d93f7cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java

+ 1 - 1
core/src/test/java/org/elasticsearch/http/netty/NettyHttpRequestSizeLimitIT.java

@@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.hasSize;
  */
 @ClusterScope(scope = Scope.TEST, numDataNodes = 1)
 public class NettyHttpRequestSizeLimitIT extends ESIntegTestCase {
-    private static final ByteSizeValue LIMIT = new ByteSizeValue(1, ByteSizeUnit.KB);
+    private static final ByteSizeValue LIMIT = new ByteSizeValue(2, ByteSizeUnit.KB);
 
     @Override
     protected Settings nodeSettings(int nodeOrdinal) {