From b8c818ba86a5550db66f30675e2e2c154e59222b Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 4 Jan 2022 14:42:19 -0600 Subject: [PATCH] Fix Watcher testWatcherWithApiKey (#82136) Bump the timeout allowed for a Watch to execute. closes #77026 --- .../org/elasticsearch/xpack/restart/FullClusterRestartIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java index d3a46794fdd99..8b45f6cc8a583 100644 --- a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java +++ b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java @@ -259,7 +259,7 @@ public void testWatcherWithApiKey() throws Exception { final Map getWatchStatusResponse = entityAsMap(client().performRequest(getRequest)); final Map status = (Map) getWatchStatusResponse.get("status"); assertEquals("executed", status.get("execution_state")); - }); + }, 30, TimeUnit.SECONDS); } else { logger.info("testing against {}", getOldClusterVersion()); @@ -299,7 +299,7 @@ public void testWatcherWithApiKey() throws Exception { versionIncreased.get() && executed.get(), is(true) ); - }); + }, 30, TimeUnit.SECONDS); } finally { stopWatcher(); }