We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42787b8 commit a38db71Copy full SHA for a38db71
hconf/hconf.yaml
@@ -4,6 +4,3 @@
4
/gs/conf/net2222:
5
host: "123123111111"
6
port: "123123"
7
-/gs/conf/net3333:
8
- host: ""
9
- port: ""
hconf/hconf_test.go
@@ -1,6 +1,7 @@
1
package hconf
2
3
import (
+ clientv3 "go.etcd.io/etcd/client/v3"
"testing"
)
@@ -19,6 +20,9 @@ func TestHConf(t *testing.T) {
19
20
var conf = Conf{}
21
r, err := NewHConf(
22
SetWatchRootName([]string{"/gs/conf"}),
23
+ SetEtcdConf(clientv3.Config{
24
+ Endpoints: []string{"127.0.0.1:2379"},
25
+ }),
26
27
if err != nil {
28
t.Error(err)
0 commit comments