diff --git a/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java b/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java index 7407cd210ab30..5c6a6b1b7c9a7 100644 --- a/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java +++ b/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java @@ -130,7 +130,7 @@ public void testTooBigKeywordField() throws IOException { RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc); // Create a string that is too large and will not be indexed - String docContent = randomABString(MAX_FIELD_LENGTH + 1); + String docContent = "a" + randomABString(MAX_FIELD_LENGTH); Document doc = new Document(); LuceneDocument parseDoc = new LuceneDocument(); addFields(parseDoc, doc, docContent);