mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-28 10:58:30 +00:00
Simplify the test
This commit is contained in:
parent
24f48b86b5
commit
cc4fb61a38
@ -73,10 +73,7 @@ public class IngestCloseIT extends ESSingleNodeTestCase {
|
||||
@Override
|
||||
protected TestProcessor doCreate(String tag, Map<String, Object> config) throws Exception {
|
||||
return new TestProcessor("id", "test", ingestDocument -> {
|
||||
ingestDocument.setFieldValue("processed", true);
|
||||
if (ingestDocument.getFieldValue("fail", Boolean.class)) {
|
||||
throw new IllegalArgumentException("test processor failed");
|
||||
}
|
||||
throw new UnsupportedOperationException("this code is actually never called from the test");
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user