[ML] Functional tests - stabilize typing in mml input (#63091) (#63103)

This PR wraps the model memory value setting during anomaly detection wizards in a retry.
This commit is contained in:
Robert Oskamp 2020-04-09 15:44:04 +02:00 committed by GitHub
parent 513892409c
commit a66948cfaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,9 +322,11 @@ export function MachineLearningJobWizardCommonProvider(
await this.ensureAdvancedSectionOpen();
subj = advancedSectionSelector(subj);
}
await mlCommon.setValueWithChecks(subj, modelMemoryLimit, { clearWithKeyboard: true });
await this.assertModelMemoryLimitValue(modelMemoryLimit, {
withAdvancedSection: sectionOptions.withAdvancedSection,
await retry.tryForTime(15 * 1000, async () => {
await mlCommon.setValueWithChecks(subj, modelMemoryLimit, { clearWithKeyboard: true });
await this.assertModelMemoryLimitValue(modelMemoryLimit, {
withAdvancedSection: sectionOptions.withAdvancedSection,
});
});
},