Improve UT cases (#7856)

* Opt ConsulRegistryTest Retry

* Change zk remove listener check key
This commit is contained in:
Albumen Kevin 2021-05-25 10:13:22 +08:00 committed by GitHub
parent 48ac1bf177
commit 9eb2382d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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;