Skip to content

Commit 7ba0bac

Browse files
committed
Fix SynonymsManagementAPIServiceIT
1 parent 21692b8 commit 7ba0bac

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/src/internalClusterTest/java/org/elasticsearch/synonyms/SynonymsManagementAPIServiceIT.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.action.bulk.BulkResponse;
1616
import org.elasticsearch.cluster.ClusterName;
1717
import org.elasticsearch.cluster.ClusterState;
18+
import org.elasticsearch.common.Strings;
1819
import org.elasticsearch.index.mapper.extras.MapperExtrasPlugin;
1920
import org.elasticsearch.indices.IndexCreationException;
2021
import org.elasticsearch.plugins.Plugin;
@@ -316,11 +317,7 @@ public void testCreateSynonymsWithYellowSynonymsIndex() throws Exception {
316317
@Override
317318
void checkSynonymsIndexHealth(ActionListener<ClusterHealthResponse> listener) {
318319
ClusterState clusterState = ClusterState.builder(ClusterName.DEFAULT).build();
319-
ClusterHealthResponse response = new ClusterHealthResponse(
320-
randomIdentifier(),
321-
new String[] { SynonymsManagementAPIService.SYNONYMS_INDEX_CONCRETE_NAME },
322-
clusterState
323-
);
320+
ClusterHealthResponse response = new ClusterHealthResponse(randomIdentifier(), Strings.EMPTY_ARRAY, clusterState);
324321
response.setTimedOut(true);
325322
listener.onResponse(response);
326323
}

0 commit comments

Comments
 (0)