Skip to content

Commit 2e49da4

Browse files
committed
Remove missing test util
1 parent c158fd9 commit 2e49da4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/JsonProcessorTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.elasticsearch.common.bytes.BytesReference;
1313
import org.elasticsearch.common.xcontent.XContentHelper;
1414
import org.elasticsearch.ingest.IngestDocument;
15-
import org.elasticsearch.ingest.IngestPipelineTestUtils;
1615
import org.elasticsearch.ingest.RandomDocumentPicks;
1716
import org.elasticsearch.test.ESTestCase;
1817
import org.elasticsearch.xcontent.XContentBuilder;
@@ -181,7 +180,7 @@ public void testAddToRootNestedField() throws Exception {
181180
document.put("c", "see");
182181

183182
IngestDocument ingestDocument = RandomDocumentPicks.randomIngestDocument(random(), document);
184-
ingestDocument = IngestPipelineTestUtils.runWithRandomAccessPattern(ingestDocument, jsonProcessor);
183+
jsonProcessor.execute(ingestDocument);
185184

186185
Map<String, Object> sourceAndMetadata = ingestDocument.getSourceAndMetadata();
187186
assertEquals(1, sourceAndMetadata.get("a"));

0 commit comments

Comments
 (0)