1
0
Эх сурвалжийг харах

[TEST] Increase timeout for awaiting alias & document creation

Test waits 10 seconds for all 10 aliases and documents to be created,
but it can take longer that that on slower machines.
Lee Hinman 9 жил өмнө
parent
commit
809bb9e5a1

+ 1 - 1
core/src/test/java/org/elasticsearch/aliases/IndexAliasesIT.java

@@ -477,7 +477,7 @@ public class IndexAliasesIT extends ESIntegTestCase {
             });
             });
         }
         }
         executor.shutdown();
         executor.shutdown();
-        boolean done = executor.awaitTermination(10, TimeUnit.SECONDS);
+        boolean done = executor.awaitTermination(20, TimeUnit.SECONDS);
         assertThat(done, equalTo(true));
         assertThat(done, equalTo(true));
         if (!done) {
         if (!done) {
             executor.shutdownNow();
             executor.shutdownNow();