We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 395482e commit 12ff76aCopy full SHA for 12ff76a
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistryTests.java
@@ -475,8 +475,7 @@ public void testRolloverForFreshInstalledIndexTemplate() throws Exception {
475
assertBusy(() -> assertThat(putIndexTemplateCounter.get(), equalTo(1)));
476
// rollover should be triggered even for the first installation, since the template
477
// may now take precedence over a data stream's existing index template
478
- Thread.sleep(100L);
479
- assertThat(rolloverCounter.get(), equalTo(2));
+ assertBusy(() -> assertThat(rolloverCounter.get(), equalTo(2)));
480
}
481
482
public void testThatTemplatesAreNotUpgradedWhenNotNeeded() throws Exception {
0 commit comments