Skip to content

Commit 591e352

Browse files
committed
Fix tests
Signed-off-by: Thomas Farr <[email protected]>
1 parent 36dfe94 commit 591e352

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java-client/src/test/java/org/opensearch/client/opensearch/json/PlainJsonSerializableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PlainJsonSerializableTest extends Assert {
2323
public void testIndexResponse() {
2424

2525
String expectedStringValue =
26-
"{\"_id\":\"id\",\"_index\":\"index\",\"_primary_term\":1,\"result\":\"created\",\"_seq_no\":2,\"_shards\":{\"failed\":1.0,\"successful\":1.0,\"total\":3.0,\"failures\":[{\"index\":\"index\",\"node\":\"node\",\"reason\":{\"type\":\"query_shard_exception\",\"reason\":\"Failed to create query.\"},\"shard\":1,\"status\":\"Failed\"}],\"skipped\":1.0},\"_version\":3}";
26+
"{\"_id\":\"id\",\"_index\":\"index\",\"_primary_term\":1,\"result\":\"created\",\"_seq_no\":2,\"_shards\":{\"failed\":1.0,\"successful\":1.0,\"total\":3.0,\"failures\":[{\"index\":\"index\",\"node\":\"node\",\"reason\":{\"reason\":\"Failed to create query.\",\"type\":\"query_shard_exception\"},\"shard\":1,\"status\":\"Failed\"}],\"skipped\":1.0},\"_version\":3}";
2727
IndexResponse indexResponse = IndexResponse.of(
2828
response -> response.result(Result.Created)
2929
.index("index")

java-client/src/test/java/org/opensearch/client/opensearch/model/BehaviorsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void testAdditionalProperties() {
147147
.metadata(MapBuilder.of("index", JsonData.of("test"), "retries", JsonData.of(1)))
148148
.build();
149149

150-
err = checkJsonRoundtrip(err, "{\"index\":\"test\",\"retries\":1,\"type\":\"Some type\",\"reason\":\"Some failure\"}");
150+
err = checkJsonRoundtrip(err, "{\"index\":\"test\",\"retries\":1,\"reason\":\"Some failure\",\"type\":\"Some type\"}");
151151

152152
assertEquals("Some failure", err.reason());
153153
assertEquals(1, err.metadata().get("retries").to(int.class).intValue());

0 commit comments

Comments
 (0)