From 9ff91ba621cccff7803486044436aca431d1f79a Mon Sep 17 00:00:00 2001 From: "xiaochun.xxc" Date: Wed, 9 Jan 2019 20:20:57 +0800 Subject: [PATCH] testcase assert --- .../nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java b/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java index 37d5c1317..d2731f5b1 100644 --- a/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java +++ b/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java @@ -156,7 +156,7 @@ public class MultiTenant_InstanceAPI_ITCase { String.class); Assert.assertTrue(response.getStatusCode().is2xxSuccessful()); JSONObject json = JSON.parseObject(response.getBody()); - Assert.assertEquals("33.33.33.33", json.getString("ip")); + Assert.assertEquals(2, json.getJSONArray("hosts").size()); } /**