Skip to content

Commit

Permalink
Adding refresh to ensure status is updated (#102742)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Jun 21, 2021
1 parent 773647e commit 3589ade
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ export default ({ getService }: FtrProviderContext): void => {
},
});

await es.indices.refresh({ index: alert._index });

const { body: updatedAlert } = await supertest
.post(DETECTION_ENGINE_QUERY_SIGNALS_URL)
.set('kbn-xsrf', 'true')
Expand Down Expand Up @@ -439,6 +441,8 @@ export default ({ getService }: FtrProviderContext): void => {
},
});

await es.indices.refresh({ index: alert._index });

const { body: updatedAlert } = await supertest
.post(DETECTION_ENGINE_QUERY_SIGNALS_URL)
.set('kbn-xsrf', 'true')
Expand Down

0 comments on commit 3589ade

Please sign in to comment.