mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[add data] fixed failing test
This commit is contained in:
parent
699ecfa6bf
commit
add7e8197c
1 changed files with 2 additions and 1 deletions
|
@ -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' } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue