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 committed Jan 4, 2022
1 parent 0854d44 commit b8c818b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void testWatcherWithApiKey() throws Exception {
final Map<String, Object> getWatchStatusResponse = entityAsMap(client().performRequest(getRequest));
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 @@ -299,7 +299,7 @@ public void testWatcherWithApiKey() throws Exception {
versionIncreased.get() && executed.get(),
is(true)
);
});
}, 30, TimeUnit.SECONDS);
} finally {
stopWatcher();
}
Expand Down

0 comments on commit b8c818b

Please sign in to comment.