Skip to content

Commit

Permalink
Improve UT cases (#7856)
Browse files Browse the repository at this point in the history
* Opt ConsulRegistryTest Retry

* Change zk remove listener check key
  • Loading branch information
AlbumenJ authored May 25, 2021
1 parent 48ac1bf commit 9eb2382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public void testAddListener() throws Exception {

@Test
public void tesRemoveListener() throws Exception {
String key1 = "service:version:group.configurators.remove";
String key1 = "key1.remove";
String path1 = "/dubbo/config/dubbo/" + key1;
String key2 = "appname.tag-router.remove";
String key2 = "key2.remove";
String path2 = "/dubbo/config/dubbo/" + key2;

CountDownLatch latch = new CountDownLatch(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ public void setUp() {
this.consul = ConsulStarterBuilder.consulStarter()
.build()
.start();
exception = null;
} catch (Exception e) {
exception = e;
e.printStackTrace();
}
if (exception == null) {
break;
Expand Down

0 comments on commit 9eb2382

Please sign in to comment.