Skip to content

Commit

Permalink
[7.16] Fix Watcher testWatcherWithApiKey (#82136) (#82230)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Jan 4, 2022
1 parent 8684b76 commit 5f8cd39
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ public void testWatcher() throws Exception {
}

@SuppressWarnings("unchecked")
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/77026")
public void testWatcherWithApiKey() throws Exception {
assumeTrue("API key is available since 6.7.0", getOldClusterVersion().onOrAfter(Version.V_6_7_0));
if (isRunningAgainstOldCluster()) {
Expand All @@ -259,7 +258,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 +298,7 @@ public void testWatcherWithApiKey() throws Exception {
versionIncreased.get() && executed.get(),
is(true)
);
});
}, 30, TimeUnit.SECONDS);
} finally {
stopWatcher();
}
Expand Down

0 comments on commit 5f8cd39

Please sign in to comment.