Skip to content

Commit

Permalink
Test fix -WildcardFieldMapperTests bad test data. (#76819)
Browse files Browse the repository at this point in the history
Seed produced a random document field value that didn’t produce any of the characters we were searching for.
Closes #76811
  • Loading branch information
markharwood authored Aug 23, 2021
1 parent 83ca8b9 commit d9fa53b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9fa53b

Please sign in to comment.