Skip to content

Commit a4db827

Browse files
committed
[ML] Anomaly Detection: Fix test to reflect model memory limit change. (#65967)
Adapt jest test mocks to consider update introduced in #65652. # Conflicts: # x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts
1 parent 7fd09b3 commit a4db827

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ const callWithRequest: APICaller = (method: string) => {
1414
if (method === 'fieldCaps') {
1515
resolve({ fields: [] });
1616
return;
17+
} else if (method === 'ml.info') {
18+
resolve({
19+
limits: {
20+
effective_max_model_memory_limit: '100MB',
21+
max_model_memory_limit: '1GB',
22+
},
23+
});
1724
}
1825
resolve({});
1926
}) as Promise<any>;

0 commit comments

Comments
 (0)