Skip to content

Commit

Permalink
Fix testRolloverForFreshInstalledIndexTemplate (#116450) (#116454)
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 authored Nov 8, 2024
1 parent 395482e commit 12ff76a
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 12ff76a

Please sign in to comment.