Skip to content

Commit

Permalink
[ML] Functional tests - stabilize typing in DFA mml input (elastic#66706
Browse files Browse the repository at this point in the history
) (elastic#66727)

This PR wraps the model memory value setting during data frame analytics job creation in a retry.
  • Loading branch information
pheyos authored May 15, 2020
1 parent 3134be9 commit f669b4a
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,16 @@ export function MachineLearningDataFrameAnalyticsCreationProvider(
},

async setModelMemory(modelMemory: string) {
await mlCommon.setValueWithChecks('mlAnalyticsCreateJobFlyoutModelMemoryInput', modelMemory, {
clearWithKeyboard: true,
await retry.tryForTime(15 * 1000, async () => {
await mlCommon.setValueWithChecks(
'mlAnalyticsCreateJobFlyoutModelMemoryInput',
modelMemory,
{
clearWithKeyboard: true,
}
);
await this.assertModelMemoryValue(modelMemory);
});
await this.assertModelMemoryValue(modelMemory);
},

async assertCreateIndexPatternSwitchExists() {
Expand Down

0 comments on commit f669b4a

Please sign in to comment.