Skip to content

Commit e28afff

Browse files
authored
[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.
1 parent f33b6b6 commit e28afff

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

x-pack/test/functional/services/machine_learning/data_frame_analytics_creation.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,16 @@ export function MachineLearningDataFrameAnalyticsCreationProvider(
287287
},
288288

289289
async setModelMemory(modelMemory: string) {
290-
await mlCommon.setValueWithChecks('mlAnalyticsCreateJobFlyoutModelMemoryInput', modelMemory, {
291-
clearWithKeyboard: true,
290+
await retry.tryForTime(15 * 1000, async () => {
291+
await mlCommon.setValueWithChecks(
292+
'mlAnalyticsCreateJobFlyoutModelMemoryInput',
293+
modelMemory,
294+
{
295+
clearWithKeyboard: true,
296+
}
297+
);
298+
await this.assertModelMemoryValue(modelMemory);
292299
});
293-
await this.assertModelMemoryValue(modelMemory);
294300
},
295301

296302
async assertCreateIndexPatternSwitchExists() {

0 commit comments

Comments
 (0)