diff --git a/x-pack/plugins/reporting/server/lib/content_stream.test.ts b/x-pack/plugins/reporting/server/lib/content_stream.test.ts index 6d3fccff0b91..91ab3953aa8a 100644 --- a/x-pack/plugins/reporting/server/lib/content_stream.test.ts +++ b/x-pack/plugins/reporting/server/lib/content_stream.test.ts @@ -300,7 +300,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -317,7 +316,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -348,7 +346,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', @@ -365,7 +362,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', diff --git a/x-pack/plugins/reporting/server/lib/content_stream.ts b/x-pack/plugins/reporting/server/lib/content_stream.ts index b3c113dd43c3..e5006a4a4526 100644 --- a/x-pack/plugins/reporting/server/lib/content_stream.ts +++ b/x-pack/plugins/reporting/server/lib/content_stream.ts @@ -192,7 +192,6 @@ export class ContentStream extends Duplex { const body = await this.client.update({ ...this.document, - refresh: 'wait_for', body: { doc: { output: { content }, @@ -212,7 +211,6 @@ export class ContentStream extends Duplex { await this.client.index({ id, index: REPORTING_DATA_STREAM_ALIAS, - refresh: 'wait_for', op_type: 'create', body: { parent_id: parentId,