From 4e0c234566be426031740d29249867a8310231bc Mon Sep 17 00:00:00 2001 From: Ed Savage Date: Tue, 17 Oct 2023 12:16:19 +0100 Subject: [PATCH] Use concrete availability zone mapper in tests --- .../java/org/elasticsearch/xpack/ml/MachineLearningTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningTests.java index 26bf0fc286437..84cef907cd093 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/MachineLearningTests.java @@ -33,6 +33,7 @@ import org.elasticsearch.xpack.core.ml.action.SetUpgradeModeAction; import org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentAction; import org.elasticsearch.xpack.ml.autoscaling.AbstractNodeAvailabilityZoneMapper; +import org.elasticsearch.xpack.ml.autoscaling.NodeRealAvailabilityZoneMapper; import org.elasticsearch.xpack.ml.rest.RestMlInfoAction; import org.elasticsearch.xpack.ml.rest.dataframe.RestGetDataFrameAnalyticsAction; import org.elasticsearch.xpack.ml.rest.inference.RestGetTrainedModelsAction; @@ -337,7 +338,7 @@ public String[] getAnalyticsDestIndexAllowedSettings() { @Override public AbstractNodeAvailabilityZoneMapper getNodeAvailabilityZoneMapper(Settings settings, ClusterSettings clusterSettings) { - return null; + return new NodeRealAvailabilityZoneMapper(settings, clusterSettings); } }