This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new fdd7512b Enhance netty3 test zk address (#570)
fdd7512b is described below
commit fdd7512b3579b54f88bb4e564380483769808295
Author: Albumen Kevin <[email protected]>
AuthorDate: Wed Nov 9 09:47:34 2022 +0800
Enhance netty3 test zk address (#570)
---
.../src/test/java/org/apache/dubbo/samples/DemoClientIT.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/test/java/org/apache/dubbo/samples/DemoClientIT.java
b/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/test/java/org/apache/dubbo/samples/DemoClientIT.java
index 9b19d780..728c479d 100644
---
a/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/test/java/org/apache/dubbo/samples/DemoClientIT.java
+++
b/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/test/java/org/apache/dubbo/samples/DemoClientIT.java
@@ -32,8 +32,9 @@ public class DemoClientIT {
ReferenceConfig<GreetingService> reference = new ReferenceConfig<>();
reference.setInterface(GreetingService.class);
reference.setApplication(new
ApplicationConfig("first-dubbo-consumer"));
+ String zookeeperAddress = System.getProperty("zookeeper.address",
"127.0.0.1");
reference.setRegistry(new RegistryConfig(
- "zookeeper://" + "127.0.0.1" + ":" + "2181"));
+ "zookeeper://" + zookeeperAddress + ":" + "2181"));
GreetingService service = reference.get();
String message = service.sayHi(CommonConstants.TRIPLE);
System.out.println(message);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]