Skip to content

Commit

Permalink
Fixing existing test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Jain <[email protected]>
  • Loading branch information
jainankitk committed Oct 10, 2024
1 parent d55a3d2 commit 6464cda
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.opensearch.cluster.metadata.Metadata;
import org.opensearch.cluster.service.ClusterService;
import org.opensearch.common.hash.MurmurHash3;
import org.opensearch.common.settings.Settings;
import org.opensearch.common.unit.DistanceUnit;
import org.opensearch.core.compress.CompressorRegistry;
import org.opensearch.core.index.Index;
Expand Down Expand Up @@ -65,6 +66,7 @@ public final class QueryShapeGeneratorTests extends OpenSearchTestCase {
public QueryShapeGeneratorTests() {
CompressorRegistry.defaultCompressor();
this.mockClusterService = mock(ClusterService.class);
when(mockClusterService.getSettings()).thenReturn(Settings.EMPTY);
this.mockClusterState = mock(ClusterState.class);
this.mockMetaData = mock(Metadata.class);
this.queryShapeGenerator = new QueryShapeGenerator(mockClusterService);
Expand Down

0 comments on commit 6464cda

Please sign in to comment.