Skip to content

Commit

Permalink
[ML] Functional tests - stabilize date_nanos test (#59986)
Browse files Browse the repository at this point in the history
This PR stabilizes the date_nanos test by adding a retry to the dedicated index switch click.
  • Loading branch information
pheyos authored Mar 12, 2020
1 parent bacc746 commit ca67b80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ export default function({ getService }: FtrProviderContext) {
},
];

// FLAKY: https://github.com/elastic/kibana/issues/59419
describe.skip('job on data set with date_nanos time field', function() {
describe('job on data set with date_nanos time field', function() {
this.tags(['smoke', 'mlqa']);
before(async () => {
await esArchiver.load('ml/event_rate_nanos');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ export function MachineLearningJobWizardCommonProvider(
withAdvancedSection: sectionOptions.withAdvancedSection,
})) === false
) {
await testSubjects.clickWhenNotDisabled(subj);
await retry.tryForTime(5 * 1000, async () => {
await testSubjects.clickWhenNotDisabled(subj);
await this.assertDedicatedIndexSwitchCheckedState(true, {
withAdvancedSection: sectionOptions.withAdvancedSection,
});
});
}
await this.assertDedicatedIndexSwitchCheckedState(true, {
withAdvancedSection: sectionOptions.withAdvancedSection,
});
},

async assertModelMemoryLimitInputExists(
Expand Down

0 comments on commit ca67b80

Please sign in to comment.