Skip to content

Commit

Permalink
fix for integ test failures in 2.6 (#363) (#364)
Browse files Browse the repository at this point in the history
Co-authored-by: Subhobrata Dey <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and sbcd90 authored Feb 23, 2023
1 parent 2d7390c commit 74a5453
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ protected String createTestIndex(String index, String mapping, Settings settings

protected String createTestIndex(RestClient client, String index, String mapping, Settings settings) throws IOException {
Request request = new Request("PUT", "/" + index);
String entity = "{\"settings\": " + Strings.toString(
settings.toXContent(XContentFactory.jsonBuilder(), ToXContent.EMPTY_PARAMS));
String entity = "{\"settings\": " + Strings.toString(settings);
if (mapping != null) {
entity = entity + ",\"mappings\" : {" + mapping + "}";
}
Expand Down

0 comments on commit 74a5453

Please sign in to comment.