Skip to content

Commit

Permalink
Fix Watcher testWatcherWithApiKey (elastic#82136)
Browse files Browse the repository at this point in the history
Bump the timeout allowed for a Watch to execute.

closes elastic#77026
  • Loading branch information
jakelandis authored and astefan committed Jan 7, 2022
1 parent 5f9d38b commit 6851b00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void testWatcherWithApiKey() throws Exception {
final Map<String, Object> getWatchStatusResponse = entityAsMap(client().performRequest(getWatchStatusRequest));
final Map<String, Object> status = (Map<String, Object>) getWatchStatusResponse.get("status");
assertEquals("executed", status.get("execution_state"));
});
}, 30, TimeUnit.SECONDS);

} else {
logger.info("testing against {}", getOldClusterVersion());
Expand Down Expand Up @@ -280,7 +280,7 @@ public void testWatcherWithApiKey() throws Exception {
versionIncreased.get() && executed.get(),
is(true)
);
});
}, 30, TimeUnit.SECONDS);
} finally {
stopWatcher();
}
Expand Down

0 comments on commit 6851b00

Please sign in to comment.