From 47e9e72df23f3bb9a6983c8c4ac286385dab100c Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 27 Aug 2018 12:14:46 +0700 Subject: [PATCH] reduce maximum number of writes to speed up test --- .../elasticsearch/xpack/ccr/action/ShardChangesActionTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java index ac6d8f786fb..430e9cb48b1 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java @@ -46,7 +46,7 @@ public class ShardChangesActionTests extends ESSingleNodeTestCase { .build(); final IndexService indexService = createIndex("index", settings); - final int numWrites = randomIntBetween(2, 8192); + final int numWrites = randomIntBetween(2, 4096); for (int i = 0; i < numWrites; i++) { client().prepareIndex("index", "doc", Integer.toString(i)).setSource("{}", XContentType.JSON).get(); }