[ML] Functional tests - stabilize typing in DFA mml input (#66706)

This PR wraps the model memory value setting during data frame analytics job creation in a retry.
This commit is contained in:
Robert Oskamp 2020-05-15 14:33:54 +02:00 committed by GitHub
parent f33b6b6adb
commit e28afffb98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {