[ML] Increase wait for templates timeout in tests (#61623) (#61628)

This commit is contained in:
David Kyle 2020-08-27 12:57:12 +01:00 committed by GitHub
parent 411965d392
commit 49a5afc6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ import java.util.Collections;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;
@ -142,7 +143,7 @@ public abstract class BaseMlIntegTestCase extends ESIntegTestCase {
ClusterState state = client().admin().cluster().prepareState().get().getState();
assertTrue("Timed out waiting for the ML templates to be installed",
MachineLearning.allTemplatesInstalled(state));
});
}, 20, TimeUnit.SECONDS);
}
protected Job.Builder createJob(String id) {