mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Test: wait for task to start before waiting for it to finish (#18902)
This commit is contained in:
parent
8caaf9ad11
commit
dc2d7a2a6d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user