From 5776775325c670d36091ee75f64e494b5a83c98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BB=B6?= <1060026287@qq.com> Date: Wed, 28 Oct 2020 14:00:55 +0800 Subject: [PATCH] fix com.alibaba.nacos.naming.core.ServiceManagerTest#testUpdateIpAddressesNoInstance unit test can't pass (#4069) --- .../java/com/alibaba/nacos/naming/core/ServiceManagerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/naming/src/test/java/com/alibaba/nacos/naming/core/ServiceManagerTest.java b/naming/src/test/java/com/alibaba/nacos/naming/core/ServiceManagerTest.java index ff02d0148..488e706b3 100644 --- a/naming/src/test/java/com/alibaba/nacos/naming/core/ServiceManagerTest.java +++ b/naming/src/test/java/com/alibaba/nacos/naming/core/ServiceManagerTest.java @@ -344,7 +344,8 @@ public class ServiceManagerTest extends BaseTest { @Test public void testUpdateIpAddressesNoInstance() throws Exception { expectedException.expect(IllegalArgumentException.class); - expectedException.expectMessage("ip list can not be empty, service: test-service, ip list: []"); + expectedException + .expectMessage(String.format("ip list can not be empty, service: %s, ip list: []", TEST_SERVICE_NAME)); serviceManager.updateIpAddresses(service, UtilsAndCommons.UPDATE_INSTANCE_ACTION_ADD, true); }