Skip to content

Commit 3ad0593

Browse files
authored
[ML] Fix typo (#82313) (#82318)
Fixes a typo in the name of a new method added in #82304
1 parent fb391cc commit 3ad0593

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/AnnotationIndexIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void testNotCreatedWhenNoOtherMlIndices() {
6969
public void testCreatedWhenAfterOtherMlIndex() throws Exception {
7070
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
7171
// to be created, as it should get created as soon as any other ML index exists
72-
createAnnotation();
72+
createNotification();
7373

7474
assertBusy(() -> {
7575
assertTrue(annotationsIndexExists(AnnotationIndex.INDEX_NAME));
@@ -80,7 +80,7 @@ public void testCreatedWhenAfterOtherMlIndex() throws Exception {
8080
public void testReindexing() throws Exception {
8181
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
8282
// to be created, as it should get created as soon as any other ML index exists
83-
createAnnotation();
83+
createNotification();
8484

8585
assertBusy(() -> {
8686
assertTrue(annotationsIndexExists(AnnotationIndex.INDEX_NAME));
@@ -122,7 +122,7 @@ public void testReindexing() throws Exception {
122122
public void testReindexingWithLostAliases() throws Exception {
123123
// Creating a document in the .ml-notifications-000002 index should cause .ml-annotations
124124
// to be created, as it should get created as soon as any other ML index exists
125-
createAnnotation();
125+
createNotification();
126126

127127
assertBusy(() -> {
128128
assertTrue(annotationsIndexExists(AnnotationIndex.INDEX_NAME));
@@ -163,7 +163,7 @@ public void testNotCreatedWhenAfterOtherMlIndexAndUpgradeInProgress() throws Exc
163163
try {
164164
// Creating a document in the .ml-notifications-000002 index would normally cause .ml-annotations
165165
// to be created, but in this case it shouldn't as we're doing an upgrade
166-
createAnnotation();
166+
createNotification();
167167

168168
assertBusy(() -> {
169169
try {
@@ -254,7 +254,7 @@ private void createReindexedIndex(String reindexedIndexName) {
254254
// no point in this test as there's nothing in the old index.
255255
}
256256

257-
private void createAnnotation() {
257+
private void createNotification() {
258258
AnomalyDetectionAuditor auditor = new AnomalyDetectionAuditor(client(), getInstanceFromNode(ClusterService.class));
259259
auditor.info("whatever", "blah");
260260
}

0 commit comments

Comments
 (0)