Skip to content

Commit fe7f0c5

Browse files
authored
Fix Watcher testWatcherWithApiKey (#82136)
Bump the timeout allowed for a Watch to execute. closes #77026
1 parent a72817c commit fe7f0c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void testWatcherWithApiKey() throws Exception {
244244
final Map<String, Object> getWatchStatusResponse = entityAsMap(client().performRequest(getWatchStatusRequest));
245245
final Map<String, Object> status = (Map<String, Object>) getWatchStatusResponse.get("status");
246246
assertEquals("executed", status.get("execution_state"));
247-
});
247+
}, 30, TimeUnit.SECONDS);
248248

249249
} else {
250250
logger.info("testing against {}", getOldClusterVersion());
@@ -280,7 +280,7 @@ public void testWatcherWithApiKey() throws Exception {
280280
versionIncreased.get() && executed.get(),
281281
is(true)
282282
);
283-
});
283+
}, 30, TimeUnit.SECONDS);
284284
} finally {
285285
stopWatcher();
286286
}

0 commit comments

Comments
 (0)