Skip to content

Commit

Permalink
Increase time between creating a rule and retrieving its status
Browse files Browse the repository at this point in the history
We need to wait for ES to become consistent.
  • Loading branch information
rylnd committed Apr 17, 2020
1 parent c13a026 commit 5dca952
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default ({ getService }: FtrProviderContext): void => {
.send(getSimpleRule())
.expect(200);

await new Promise(resolve => setTimeout(resolve, 1000)).then(async () => {
await new Promise(resolve => setTimeout(resolve, 5000)).then(async () => {
// query the single rule from _find
const { body } = await supertest
.post(`${DETECTION_ENGINE_RULES_URL}/_find_statuses`)
Expand Down

0 comments on commit 5dca952

Please sign in to comment.