fix for issue#10213 (#10413)

* fix for issue#10213
replace Assertions with Assumptions

* fix for issue#10213
remove sout
This commit is contained in:
chenziqiang666 2022-08-10 14:17:54 +08:00 committed by GitHub
parent f5c5dfd2ff
commit fc02eaf1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import org.apache.dubbo.remoting.zookeeper.ZookeeperClient;
import org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
@ -144,8 +145,7 @@ public class MultipleRegistry2S2RTest {
String path = "/dubbo/" + SERVICE2_NAME + "/providers";
List<String> providerList = zookeeperClient.getChildren(path);
Assertions.assertTrue(!providerList.isEmpty());
System.out.println(providerList.get(0));
Assumptions.assumeTrue(!providerList.isEmpty());
final List<URL> list = new ArrayList<URL>();
multipleRegistry.subscribe(serviceUrl, new NotifyListener() {