From 104a7c55aa3b02f28a2b737e7bc2ea1ea66374a2 Mon Sep 17 00:00:00 2001 From: nkorange Date: Sat, 12 Jan 2019 22:46:44 +0800 Subject: [PATCH] #498 Fix test case bug --- .../com/alibaba/nacos/test/naming/MultiTenant_ITCase.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_ITCase.java b/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_ITCase.java index 0672bfd8a..791338891 100644 --- a/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_ITCase.java +++ b/test/src/test/java/com/alibaba/nacos/test/naming/MultiTenant_ITCase.java @@ -267,8 +267,8 @@ public class MultiTenant_ITCase { Assert.assertEquals(2, naming1.getAllInstances(serviceName).size()); - naming1.deregisterInstance(serviceName, "22.22.22.22", TEST_PORT); - TimeUnit.SECONDS.sleep(2); + naming1.deregisterInstance(serviceName, "22.22.22.22", TEST_PORT, "c1"); + TimeUnit.SECONDS.sleep(12); Assert.assertEquals(1, naming1.getAllInstances(serviceName).size()); Assert.assertEquals(1, naming2.getAllInstances(serviceName).size()); @@ -296,8 +296,8 @@ public class MultiTenant_ITCase { Instance instance = naming1.selectOneHealthyInstance(serviceName, Arrays.asList("c1")); Assert.assertEquals("11.11.11.11", instance.getIp()); - naming1.deregisterInstance(serviceName, "11.11.11.11", TEST_PORT); - TimeUnit.SECONDS.sleep(2); + naming1.deregisterInstance(serviceName, "11.11.11.11", TEST_PORT, "c1"); + TimeUnit.SECONDS.sleep(12); instance = naming1.selectOneHealthyInstance(serviceName); Assert.assertEquals("22.22.22.22", instance.getIp()); }