From b52ab1b4b925d9cb162a97256f6221d586f8781c Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 4 Jan 2022 15:50:43 -0600 Subject: [PATCH] [8.0] Fix Watcher testWatcherWithApiKey (#82136) (#82233) --- .../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 b5b2553df9761..790b524085e89 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 @@ -244,7 +244,7 @@ public void testWatcherWithApiKey() throws Exception { final Map getWatchStatusResponse = entityAsMap(client().performRequest(getWatchStatusRequest)); final Map status = (Map) getWatchStatusResponse.get("status"); assertEquals("executed", status.get("execution_state")); - }); + }, 30, TimeUnit.SECONDS); } else { logger.info("testing against {}", getOldClusterVersion()); @@ -280,7 +280,7 @@ public void testWatcherWithApiKey() throws Exception { versionIncreased.get() && executed.get(), is(true) ); - }); + }, 30, TimeUnit.SECONDS); } finally { stopWatcher(); }