This is an automated email from the ASF dual-hosted git repository.
laurence pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/3.0 by this push:
new a3cba30 fix: fix multi registry integrate test (#144)
a3cba30 is described below
commit a3cba3071ec478025f03e1e313837ba62d4b72e5
Author: Laurence <[email protected]>
AuthorDate: Fri Jun 18 11:33:17 2021 +0800
fix: fix multi registry integrate test (#144)
---
multi-registry/go-server/conf/client.yml | 14 +++++++-------
multi-registry/go-server/tests/integration/main_test.go | 1 +
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/multi-registry/go-server/conf/client.yml
b/multi-registry/go-server/conf/client.yml
index a687de6..11a79ed 100644
--- a/multi-registry/go-server/conf/client.yml
+++ b/multi-registry/go-server/conf/client.yml
@@ -9,26 +9,26 @@ connect_timeout: "3s"
# application config
application:
organization: "dubbo.io"
- name: "UserInfoTest"
+ name: "UserInfoClient"
module: "dubbo-go user-info client"
version: "0.0.1"
environment: "dev"
# registry config
registries:
- "demoZk1":
+ "zk":
protocol: "zookeeper"
timeout: "3s"
address: "127.0.0.1:2181"
- "demoZk2":
- protocol: "zookeeper"
- timeout: "3s"
- address: "127.0.0.1:2182"
+ "nacos":
+ protocol: "nacos"
+ timeout : "3s"
+ address: "127.0.0.1:8848"
# reference config
references:
"UserProvider":
- registry: "demoZk1,demoZk2"
+ registry: "zk,nacos"
protocol: "dubbo"
interface: "org.apache.dubbo.UserProvider"
cluster: "failover"
diff --git a/multi-registry/go-server/tests/integration/main_test.go
b/multi-registry/go-server/tests/integration/main_test.go
index c6d5779..a3b34d2 100644
--- a/multi-registry/go-server/tests/integration/main_test.go
+++ b/multi-registry/go-server/tests/integration/main_test.go
@@ -30,6 +30,7 @@ import (
_ "dubbo.apache.org/dubbo-go/v3/protocol/dubbo"
_ "dubbo.apache.org/dubbo-go/v3/registry/protocol"
_ "dubbo.apache.org/dubbo-go/v3/registry/zookeeper"
+ _ "dubbo.apache.org/dubbo-go/v3/registry/nacos"
)
import (