Test: wait for task to start before waiting for it to finish (#18902)

This commit is contained in:
Nik Everett 2016-06-15 18:42:48 -04:00 committed by GitHub
parent 8caaf9ad11
commit dc2d7a2a6d

View File

@ -467,6 +467,9 @@ public class TasksIT extends ESIntegTestCase {
try {
taskId = waitForTestTaskStartOnAllNodes();
// Wait for the task to start
assertBusy(() -> client().admin().cluster().prepareGetTask(taskId).get());
// Spin up a request to wait for that task to finish
waitResponseFuture = wait.apply(taskId);
} finally {