Skip to content

Commit

Permalink
[ML] Functional tests - stabilize typing in DFA mml input (#66706)
Browse files Browse the repository at this point in the history
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 f33b6b6 commit e28afff
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 e28afff

Please sign in to comment.