Skip to content

Commit

Permalink
[ML] Functional tests - stabilize typing in mml input (#63091)
Browse files Browse the repository at this point in the history
This PR wraps the model memory value setting during anomaly detection wizards in a retry.
  • Loading branch information
pheyos committed Apr 9, 2020
1 parent faeb93a commit 27e9705
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
});
},

Expand Down

0 comments on commit 27e9705

Please sign in to comment.