Skip to content

Commit

Permalink
modify testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
alios-studio committed Jan 9, 2019
1 parent 48e2dcc commit 4e1f587
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public void multipleTenant_deregisterInstance() throws Exception {
}

/**
* @TCDescription : 多租户删除实例
* @TCDescription : 多租户下,选择一个健康的实例
* @TestStep :
* @ExpectResult :
*/
Expand All @@ -300,6 +300,11 @@ public void multipleTenant_selectOneHealthyInstance() throws Exception {
Assert.assertEquals("11.11.11.11", instances.get(0).getIp());
instance = naming2.selectOneHealthyInstance(serviceName, Arrays.asList("c1"));
Assert.assertNull(instance);

naming1.deregisterInstance(serviceName, "11.11.11.11", TEST_PORT);
TimeUnit.SECONDS.sleep(2);
instance = naming1.selectOneHealthyInstance(serviceName);
Assert.assertEquals("22.22.22.22", instances.get(0).getIp());
}

private void verifyInstanceListForNaming(NamingService naming, int size, String serviceName) throws Exception {
Expand Down

0 comments on commit 4e1f587

Please sign in to comment.