Skip to content

Commit

Permalink
Test fix -WildcardFieldMapperTests bad test data. (#76819) (#76836)
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 and ywangd committed Sep 16, 2021
1 parent 3e621f1 commit 18f02eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 18f02eb

Please sign in to comment.