From 18b8c95a717844ab33fc1db82084d8d5b724172f Mon Sep 17 00:00:00 2001 From: nkorange Date: Wed, 10 Apr 2019 22:44:38 +0800 Subject: [PATCH] Fix test case error --- .../alibaba/nacos/test/naming/DeregisterInstance_ITCase.java | 2 +- .../nacos/test/naming/MultiTenant_InstanceAPI_ITCase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/test/java/com/alibaba/nacos/test/naming/DeregisterInstance_ITCase.java b/test/src/test/java/com/alibaba/nacos/test/naming/DeregisterInstance_ITCase.java index e3e72dc27..7fbdf9900 100644 --- a/test/src/test/java/com/alibaba/nacos/test/naming/DeregisterInstance_ITCase.java +++ b/test/src/test/java/com/alibaba/nacos/test/naming/DeregisterInstance_ITCase.java @@ -131,7 +131,7 @@ public class DeregisterInstance_ITCase { instances = naming.getAllInstances(serviceName); - Assert.assertEquals(instances.size(), 1); + Assert.assertEquals(1, instances.size()); instances = naming.getAllInstances(serviceName, Arrays.asList("c2")); Assert.assertEquals(instances.size(), 1); 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 58f62ea85..15f0a7e66 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 @@ -202,7 +202,7 @@ public class MultiTenant_InstanceAPI_ITCase { .appendParam("namespaceId", "namespace-2") .done(), String.class); - Assert.assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, response.getStatusCode()); + Assert.assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode()); response = request("/nacos/v1/ns/instance/list", Params.newParams()