diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java index d2468f65667..25cb9209393 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/DetectionRulesIT.java @@ -73,7 +73,7 @@ public class DetectionRulesIT extends MlNativeAutodetectIntegTestCase { Arrays.asList(detector.build())); analysisConfig.setBucketSpan(TimeValue.timeValueHours(1)); DataDescription.Builder dataDescription = new DataDescription.Builder(); - Job.Builder job = new Job.Builder("detectrion-rule-numeric-test"); + Job.Builder job = new Job.Builder("detection-rule-numeric-test"); job.setAnalysisConfig(analysisConfig); job.setDataDescription(dataDescription); diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlNativeAutodetectIntegTestCase.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlNativeAutodetectIntegTestCase.java index ae14ffdab19..527459fd5d4 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlNativeAutodetectIntegTestCase.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlNativeAutodetectIntegTestCase.java @@ -128,7 +128,7 @@ abstract class MlNativeAutodetectIntegTestCase extends SecurityIntegTestCase { protected void updateJob(String jobId, JobUpdate update) throws Exception { UpdateJobAction.Request request = new UpdateJobAction.Request(jobId, update); - client().execute(UpdateJobAction.INSTANCE, request); + client().execute(UpdateJobAction.INSTANCE, request).get(); } protected void deleteJob(String jobId) throws Exception {