Skip to content

Commit

Permalink
Removing legacy es client from alerting test (#107152) (#107460)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
  • Loading branch information
kibanamachine and ymao1 committed Aug 2, 2021
1 parent 16f0ff7 commit 51edc2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { DEFAULT_MAX_EPHEMERAL_ACTIONS_PER_ALERT } from '../../../../../plugins/
export default function createNotifyWhenTests({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const retry = getService('retry');
const es = getService('legacyEs');
const es = getService('es');

const esTestIndexTool = new ESTestIndexTool(es, retry);

Expand Down Expand Up @@ -117,7 +117,7 @@ export default function createNotifyWhenTests({ getService }: FtrProviderContext
);

const searchResult = await esTestIndexTool.search('action:test.index-record');
expect(searchResult.hits.total.value).equal(
expect(searchResult.body.hits.total.value).equal(
nonEphemeralTasks + DEFAULT_MAX_EPHEMERAL_ACTIONS_PER_ALERT
);
});
Expand Down

0 comments on commit 51edc2b

Please sign in to comment.