[TEST] Call get on update job action from DetectionRulesIT
This was the reason for the intermittent failures of this test. Original commit: elastic/x-pack-elasticsearch@e8605590a1
This commit is contained in:
parent
e2cc00ab8e
commit
a0099cace6
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue