[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());
|
||||
|
||||
CloseJobAction.Request closeJobRequest = new CloseJobAction.Request("job_id");
|
||||
client().execute(CloseJobAction.INSTANCE, closeJobRequest);
|
||||
client().execute(CloseJobAction.INSTANCE, closeJobRequest).actionGet();
|
||||
assertBusy(() -> {
|
||||
ClusterState clusterState = client().admin().cluster().prepareState().get().getState();
|
||||
PersistentTasksCustomMetaData tasks = clusterState.getMetaData().custom(PersistentTasksCustomMetaData.TYPE);
|
||||
|
|
Loading…
Reference in New Issue