-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RAM] Fix flaky expiring snooze test #159138
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
}, | ||
]); | ||
await retry.try(async () => { | ||
expect(updatedAlert.snooze_schedule).to.eql([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will have to fetch the rule in this function instead so you can have updatedAlert
eventually equal to what's expected.
const { body: updatedAlert } = await supertestWithoutAuth
.get(`${getUrlPrefix(Spaces.space1.id)}/internal/alerting/rule/${createdRule.id}`)
.set('kbn-xsrf', 'foo')
.expect(200);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RIGHT WHOOPS thanks for that lmao
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
@elasticmachine merge upstream |
expected head sha didn’t match current head ref. |
AND WHOSE FAULT IS THAT @kibanamachine? NOT MINE |
I have no idea what's happening so I'm gonna reopen this PR |
Pull request was closed
## Summary Closes #159076 Wraps a flaky bit of test in retry.try Second attempt to merge #159138 after that one inexplicably got its git all in a twist or something --------- Co-authored-by: Kibana Machine <[email protected]>
Summary
Closes #159076
Wraps a flaky bit of test in
retry.try