diff --git a/plugin/src/test/java/org/elasticsearch/test/SecurityIntegTestCase.java b/plugin/src/test/java/org/elasticsearch/test/SecurityIntegTestCase.java index 3b63a35d2fa..969f7e9a08a 100644 --- a/plugin/src/test/java/org/elasticsearch/test/SecurityIntegTestCase.java +++ b/plugin/src/test/java/org/elasticsearch/test/SecurityIntegTestCase.java @@ -49,6 +49,7 @@ import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.concurrent.TimeUnit; import java.util.function.Function; import java.util.stream.Collectors; @@ -484,7 +485,7 @@ public abstract class SecurityIntegTestCase extends ESIntegTestCase { assertTrue(indexRoutingTable.allPrimaryShardsActive()); } } - }); + }, 20, TimeUnit.SECONDS); } }