fix com.alibaba.nacos.naming.core.ServiceManagerTest#testUpdateIpAddressesNoInstance unit test can't pass (#4069)
This commit is contained in:
parent
adf07eb935
commit
5776775325
@ -344,7 +344,8 @@ public class ServiceManagerTest extends BaseTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testUpdateIpAddressesNoInstance() throws Exception {
|
public void testUpdateIpAddressesNoInstance() throws Exception {
|
||||||
expectedException.expect(IllegalArgumentException.class);
|
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);
|
serviceManager.updateIpAddresses(service, UtilsAndCommons.UPDATE_INSTANCE_ACTION_ADD, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user