Skip to content

Commit 18f02eb

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

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
@@ -131,7 +131,7 @@ public void testTooBigKeywordField() throws IOException {
131131
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);
132132

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

0 commit comments

Comments
 (0)