Skip to content

Commit 4209a04

Browse files
Fix flaky CopyProcessorTests (#19074)
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com> (cherry picked from commit 82ebf3b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent cf5e1dc commit 4209a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-common/src/test/java/org/opensearch/ingest/common/CopyProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testCopyExistingField() throws Exception {
4848

4949
public void testCopyWithIgnoreMissing() throws Exception {
5050
IngestDocument ingestDocument = RandomDocumentPicks.randomIngestDocument(random());
51-
String targetFieldName = RandomDocumentPicks.randomFieldName(random());
51+
String targetFieldName = RandomDocumentPicks.randomNonExistingFieldName(random(), ingestDocument);
5252
Processor processor = createCopyProcessor("non-existing-field", targetFieldName, false, false, false);
5353
assertThrows(
5454
"source field [non-existing-field] doesn't exist",

0 commit comments

Comments
 (0)