[TEST] Actually perform the intended close...
Original commit: elastic/x-pack-elasticsearch@1333d78509
This commit is contained in:
parent
272d1b269e
commit
f8f7454130
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue