Browse Source

Extend timeout of assertBusy in DeprecationHttpIT for remaining places (#108229)

Moritz Mack 1 year ago
parent
commit
609f5f8015

+ 2 - 2
x-pack/plugin/deprecation/qa/rest/src/javaRestTest/java/org/elasticsearch/xpack/deprecation/DeprecationHttpIT.java

@@ -140,7 +140,7 @@ public class DeprecationHttpIT extends ESRestTestCase {
                 List<Map<String, Object>> documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId());
                 List<Map<String, Object>> documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId());
                 logger.warn(documents);
                 logger.warn(documents);
                 assertThat(documents, hasSize(2));
                 assertThat(documents, hasSize(2));
-            });
+            }, 30, TimeUnit.SECONDS);
         } finally {
         } finally {
             cleanupSettings();
             cleanupSettings();
         }
         }
@@ -260,7 +260,7 @@ public class DeprecationHttpIT extends ESRestTestCase {
             var documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId);
             var documents = DeprecationTestUtils.getIndexedDeprecations(client(), xOpaqueId);
             logger.warn(documents);
             logger.warn(documents);
             assertThat(documents, hasSize(headerMatchers.size()));
             assertThat(documents, hasSize(headerMatchers.size()));
-        });
+        }, 30, TimeUnit.SECONDS);
     }
     }
 
 
     public void testDeprecationRouteThrottling() throws Exception {
     public void testDeprecationRouteThrottling() throws Exception {