Skip to content

Commit 360ce4f

Browse files
committed
Wrap and rethrow exceptions
1 parent d80bf42 commit 360ce4f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
package org.elasticsearch.ingest.common;
1111

12+
import org.elasticsearch.ExceptionsHelper;
1213
import org.elasticsearch.ingest.IngestDocument;
1314
import org.elasticsearch.ingest.TestIngestDocument;
1415
import org.elasticsearch.test.ESTestCase;
@@ -368,7 +369,12 @@ private void testCommunityIdProcessor(Map<String, Object> source, int seed, Stri
368369
);
369370

370371
IngestDocument input = TestIngestDocument.withDefaultVersion(source);
371-
IngestDocument output = processor.execute(input);
372+
IngestDocument output;
373+
try {
374+
output = processor.execute(input);
375+
} catch (Exception e) {
376+
throw ExceptionsHelper.convertToRuntime(e);
377+
}
372378

373379
String hash = output.getFieldValue(DEFAULT_TARGET, String.class, ignoreMissing);
374380
assertThat(hash, equalTo(expectedHash));

0 commit comments

Comments
 (0)