-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ML] Single metric viewer functional test: add retry to reduce flakiness #188686
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ export function MachineLearningSingleMetricViewerProvider( | |
}, | ||
|
||
async ensureAnomalyActionDiscoverButtonClicked() { | ||
await retry.tryForTime(3 * 1000, async () => { | ||
await retry.tryForTime(10 * 1500, async () => { | ||
await testSubjects.click('mlAnomaliesListRowAction_viewInDiscoverButton'); | ||
await testSubjects.existOrFail('discoverLayoutResizableContainer'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the failure screenshot it looks like the click didn't have an effect (might have been triggered too early) and the click should be retried. However looking into the test log, I can see that this
|
||
}); | ||
|
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.
Quick nit on the format: we tend to only change the first factor and leave the
* 1000
so it's easier to see at glance how many seconds this timeout is.