Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Dec 18, 2023
1 parent 7ae2bd5 commit 8e6d283
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ public void testRemoveServerAddressByPushEmptyProtection() {
List<InetSocketAddress> list = redisRegistryService.lookup("default_tx_group");
Assertions.assertEquals(2, list.size());
redisRegistryService.unregister(new InetSocketAddress(NetUtil.getLocalIp(), 8091));
Thread.sleep(100);
redisRegistryService.unregister(new InetSocketAddress(NetUtil.getLocalIp(), 8092));
list = redisRegistryService.lookup("default_tx_group");
Assertions.assertEquals(1, list.size());
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}finally {
try {
Expand Down

0 comments on commit 8e6d283

Please sign in to comment.