This is an automated email from the ASF dual-hosted git repository.
jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new d82fa8a Fix test failure TestInstancesAccessor (#1881)
d82fa8a is described below
commit d82fa8a7177427ac4ed07d6f58a774eb46d3c0b9
Author: Junkai Xue <[email protected]>
AuthorDate: Mon Sep 27 13:23:23 2021 -0700
Fix test failure TestInstancesAccessor (#1881)
---
.../test/java/org/apache/helix/rest/server/TestInstancesAccessor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestInstancesAccessor.java
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestInstancesAccessor.java
index 912774b..7f046e4 100644
---
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestInstancesAccessor.java
+++
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestInstancesAccessor.java
@@ -95,7 +95,7 @@ public class TestInstancesAccessor extends AbstractTestClass {
new
BestPossibleExternalViewVerifier.Builder(STOPPABLE_CLUSTER).setZkAddr(ZK_ADDR).build();
Assert.assertTrue(verifier.verifyByPolling());
- Entity entity = Entity.entity("", MediaType.APPLICATION_JSON_TYPE);
+ Entity entity = Entity.entity("\"{}\"", MediaType.APPLICATION_JSON_TYPE);
Response response = new
JerseyUriRequestBuilder("clusters/{}/instances/{}/stoppable")
.format(STOPPABLE_CLUSTER, instance).post(this, entity);
JsonNode jsonResult =
OBJECT_MAPPER.readTree(response.readEntity(String.class));
@@ -109,7 +109,7 @@ public class TestInstancesAccessor extends
AbstractTestClass {
_configAccessor.setInstanceConfig(STOPPABLE_CLUSTER, instance,
instanceConfig);
Assert.assertTrue(verifier.verifyByPolling());
- entity = Entity.entity("", MediaType.APPLICATION_JSON_TYPE);
+ entity = Entity.entity("\"{}\"", MediaType.APPLICATION_JSON_TYPE);
response = new
JerseyUriRequestBuilder("clusters/{}/instances/{}/stoppable")
.format(STOPPABLE_CLUSTER, instance).post(this, entity);
jsonResult = OBJECT_MAPPER.readTree(response.readEntity(String.class));