Skip to content

Commit d9fa53b

Browse files
authored
Test fix -WildcardFieldMapperTests bad test data. (#76819)
Seed produced a random document field value that didn’t produce any of the characters we were searching for. Closes #76811
1 parent 83ca8b9 commit d9fa53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void testTooBigKeywordField() throws IOException {
130130
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);
131131

132132
// Create a string that is too large and will not be indexed
133-
String docContent = randomABString(MAX_FIELD_LENGTH + 1);
133+
String docContent = "a" + randomABString(MAX_FIELD_LENGTH);
134134
Document doc = new Document();
135135
LuceneDocument parseDoc = new LuceneDocument();
136136
addFields(parseDoc, doc, docContent);

0 commit comments

Comments
 (0)