Skip to content

Commit

Permalink
[ML] Anomaly Detection: Fix test to reflect model memory limit change. (
Browse files Browse the repository at this point in the history
elastic#65967)

Adapt jest test mocks to consider update introduced in elastic#65652.
# Conflicts:
#	x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts
  • Loading branch information
walterra committed May 11, 2020
1 parent 89dbb26 commit fd18214
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ const callWithRequest: APICaller = (method: string) => {
if (method === 'fieldCaps') {
resolve({ fields: [] });
return;
} else if (method === 'ml.info') {
resolve({
limits: {
effective_max_model_memory_limit: '100MB',
max_model_memory_limit: '1GB',
},
});
}
resolve({});
}) as Promise<any>;
Expand Down

0 comments on commit fd18214

Please sign in to comment.