Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <zaniu@amazon.com>
  • Loading branch information
zane-neo committed Oct 13, 2023
1 parent 025c85e commit 78ad325
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -815,15 +815,15 @@ protected void reindex(String fromIndexName, String toIndexName) throws Exceptio
"POST",
"/_reindex?refresh",
null,
toHttpEntity("{\"source\":{\"index\":\""+ fromIndexName +"\"},\"dest\":{\"index\":\"" + toIndexName + "\"}}"),
toHttpEntity("{\"source\":{\"index\":\"" + fromIndexName + "\"},\"dest\":{\"index\":\"" + toIndexName + "\"}}"),
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, "Kibana"))
);
Map<String, Object> map = XContentHelper.convertToMap(
XContentType.JSON.xContent(),
EntityUtils.toString(response.getEntity()),
false
);
assertEquals(0, ((List)map.get("failures")).size());
assertEquals(0, ((List) map.get("failures")).size());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ public void testSparseEncodingProcessorWithReindex() throws Exception {
assertEquals(1, getDocCount(toIndexName));
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.junit.After;
import org.opensearch.neuralsearch.common.BaseNeuralSearchIT;


public class TextEmbeddingProcessorIT extends BaseNeuralSearchIT {

private static final String INDEX_NAME = "text_embedding_index";
Expand Down

0 comments on commit 78ad325

Please sign in to comment.