From fd18214306bcb122d9a74904c850c4087f237a3d Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Mon, 11 May 2020 11:41:01 +0200 Subject: [PATCH] [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 --- .../ml/server/models/job_validation/job_validation.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts b/x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts index 9851f80a42d5b..7d0634596b231 100644 --- a/x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts +++ b/x-pack/plugins/ml/server/models/job_validation/job_validation.test.ts @@ -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;