Skip to content

Commit

Permalink
Removing legacy es client from alerting test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Jul 29, 2021
1 parent 82e0ce1 commit f675d52
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 f675d52

Please sign in to comment.