Improve UT cases (#7856)
* Opt ConsulRegistryTest Retry * Change zk remove listener check key
This commit is contained in:
parent
48ac1bf177
commit
9eb2382d01
|
|
@ -128,9 +128,9 @@ public class ZookeeperDynamicConfigurationTest {
|
|||
|
||||
@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);
|
||||
|
|
|
|||
|
|
@ -57,8 +57,10 @@ public class ConsulRegistryTest {
|
|||
this.consul = ConsulStarterBuilder.consulStarter()
|
||||
.build()
|
||||
.start();
|
||||
exception = null;
|
||||
} catch (Exception e) {
|
||||
exception = e;
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (exception == null) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue