Skip to content

Commit

Permalink
[ML] fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed May 13, 2020
1 parent 9a60959 commit 55e0aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/common/util/job_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export function validateModelMemoryLimitUnits(
let valid = true;

if (modelMemoryLimit !== undefined) {
const mml = modelMemoryLimit.toUpperCase();
const mml = String(modelMemoryLimit).toUpperCase();
const mmlSplit = mml.match(/\d+(\w+)$/);
const unit = mmlSplit && mmlSplit.length === 2 ? mmlSplit[1] : null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type ValidateJobPayload = TypeOf<typeof validateJobSchema>;
export async function validateJob(
callWithRequest: APICaller,
payload: ValidateJobPayload,
kbnVersion?: string,
kbnVersion = 'current',
callAsInternalUser?: APICaller,
isSecurityDisabled?: boolean
) {
Expand Down

0 comments on commit 55e0aea

Please sign in to comment.