Skip to content

Commit

Permalink
Re-enable SingleNodeTests.testThatLoadingWithNonExistingIndexWorks (#…
Browse files Browse the repository at this point in the history
…82118) (#82215)

The PR re-enables a test that has been muted for a while.
A few improvements have been made that are suspected
to allow this test to pass now. Also, the timeout has been
bumped up to help with the stability of this test.

closes #54096
  • Loading branch information
jakelandis committed Jan 4, 2022
1 parent 035478d commit 8d5ea24
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ protected boolean timeWarped() {
// this is the standard setup when starting watcher in a regular cluster
// the index does not exist, a watch gets added
// the watch should be executed properly, despite the index being created and the cluster state listener being reloaded
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/54096")
public void testThatLoadingWithNonExistingIndexWorks() throws Exception {
stopWatcher();
ClusterStateResponse clusterStateResponse = client().admin().cluster().prepareState().get();
Expand All @@ -63,7 +62,7 @@ public void testThatLoadingWithNonExistingIndexWorks() throws Exception {
client().admin().indices().prepareRefresh(".watcher-history*");
SearchResponse searchResponse = client().prepareSearch(".watcher-history*").setSize(0).get();
assertThat(searchResponse.getHits().getTotalHits().value, is(greaterThanOrEqualTo(1L)));
}, 5, TimeUnit.SECONDS);
}, 30, TimeUnit.SECONDS);
}

}

0 comments on commit 8d5ea24

Please sign in to comment.