Skip to content

Commit

Permalink
Fix testRolloverForFreshInstalledIndexTemplate (elastic#116450)
Browse files Browse the repository at this point in the history
Fix IndexTemplateRegistryTests.testRolloverForFreshInstalledIndexTemplate
by using assertBusy, now that we're expecting a rollover.
  • Loading branch information
axw committed Nov 8, 2024
1 parent 4ec7e36 commit d3e1306
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,7 @@ public void testRolloverForFreshInstalledIndexTemplate() throws Exception {
assertBusy(() -> assertThat(putIndexTemplateCounter.get(), equalTo(1)));
// rollover should be triggered even for the first installation, since the template
// may now take precedence over a data stream's existing index template
Thread.sleep(100L);
assertThat(rolloverCounter.get(), equalTo(2));
assertBusy(() -> assertThat(rolloverCounter.get(), equalTo(2)));
}

public void testThatTemplatesAreNotUpgradedWhenNotNeeded() throws Exception {
Expand Down

0 comments on commit d3e1306

Please sign in to comment.