[TEST] Actually perform the intended close...

Original commit: elastic/x-pack-elasticsearch@1333d78509
This commit is contained in:
Martijn van Groningen 2017-04-12 09:23:48 +02:00
parent 272d1b269e
commit f8f7454130
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
assertEquals(2, response.getDataCounts().getProcessedRecordCount()); assertEquals(2, response.getDataCounts().getProcessedRecordCount());
CloseJobAction.Request closeJobRequest = new CloseJobAction.Request("job_id"); CloseJobAction.Request closeJobRequest = new CloseJobAction.Request("job_id");
client().execute(CloseJobAction.INSTANCE, closeJobRequest); client().execute(CloseJobAction.INSTANCE, closeJobRequest).actionGet();
assertBusy(() -> { assertBusy(() -> {
ClusterState clusterState = client().admin().cluster().prepareState().get().getState(); ClusterState clusterState = client().admin().cluster().prepareState().get().getState();
PersistentTasksCustomMetaData tasks = clusterState.getMetaData().custom(PersistentTasksCustomMetaData.TYPE); PersistentTasksCustomMetaData tasks = clusterState.getMetaData().custom(PersistentTasksCustomMetaData.TYPE);