[add data] fixed failing test

This commit is contained in:
Jim Unger 2016-04-06 18:58:47 -05:00
parent 699ecfa6bf
commit add7e8197c

View file

@ -5,7 +5,8 @@ import _ from 'lodash';
describe('processESIngestSimulateError', function () {
it('result will be returned for processor that threw the error', function () {
const error = _.set({}, 'body.error.reason', 'foobar');
const error = _.set({}, 'body.error.root_cause[0].reason', 'foobar');
_.set(error, 'body.error.root_cause[0].header.processor_tag', 'processor1');
const expected = [
{ processorId: 'processor1', error: { compile: true, message: 'foobar' } }