Skip to content

Commit 9fd5e72

Browse files
committed
cleanup IT
1 parent 60a6b3e commit 9fd5e72

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x-pack/plugin/core/src/internalClusterTest/java/org/elasticsearch/xpack/core/ml/search/SparseVectorIndexOptionsIT.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.apache.http.HttpStatus;
1313
import org.elasticsearch.client.Request;
1414
import org.elasticsearch.client.Response;
15-
import org.elasticsearch.cluster.metadata.IndexMetadata;
1615
import org.elasticsearch.common.Strings;
1716
import org.elasticsearch.common.settings.Settings;
1817
import org.elasticsearch.common.xcontent.XContentHelper;
@@ -79,9 +78,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
7978
return List.of(XPackClientPlugin.class);
8079
}
8180

82-
static final int INTERNAL_UNMANAGED_FLAG_VALUE = 2;
83-
static final String FlAG_SETTING_KEY = IndexMetadata.INDEX_PRIORITY_SETTING.getKey();
84-
8581
@Before
8682
public void setup() {
8783
assertAcked(prepareCreate(TEST_INDEX_NAME).setMapping(getTestIndexMapping()));
@@ -113,7 +109,7 @@ private void assertCorrectResponse(Map<String, Object> responseMap) {
113109
int actualTotalHits = (int) mapHitsTotal.get("value");
114110
int numHitsExpected = expectedIds.size();
115111

116-
// assertEquals(getAssertMessage("Search result total hits count mismatch"), numHitsExpected, actualTotalHits);
112+
assertEquals(getAssertMessage("Search result total hits count mismatch"), numHitsExpected, actualTotalHits);
117113

118114
List<Map<String, Object>> hits = (List<Map<String, Object>>) mapHits.get("hits");
119115
List<String> actualDocIds = new ArrayList<>();

0 commit comments

Comments
 (0)