Skip to content

Commit

Permalink
Fixing Integ Test case
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Jain <[email protected]>
  • Loading branch information
vibrantvarun committed Sep 26, 2023
1 parent b13eb80 commit badced1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void tearDown() {
}

public void testNeuralQueryProcessor() throws Exception {
initializeIndexIfNotExist(index);
initializeIndexIfNotExist();
String modelId = getDeployedModelId();
createSearchRequestProcessor(modelId, search_pipeline);
createPipelineProcessor(modelId, ingest_pipeline);
Expand All @@ -61,12 +61,10 @@ public void testNeuralQueryProcessor() throws Exception {

assertFalse(response.isEmpty());

assertEquals(modelId, neuralQueryBuilder.modelId());

}

private void initializeIndexIfNotExist(String indexName) throws IOException {
if (index.equals(indexName) && !indexExists(index)) {
private void initializeIndexIfNotExist() throws IOException {
if (index.equals(NeuralQueryProcessorIT.index) && !indexExists(index)) {
prepareKnnIndex(
index,
Collections.singletonList(new KNNFieldConfig(TEST_KNN_VECTOR_FIELD_NAME_1, TEST_DIMENSION, TEST_SPACE_TYPE))
Expand Down

0 comments on commit badced1

Please sign in to comment.