Skip to content

Commit a38db71

Browse files
committed
hconf
1 parent 42787b8 commit a38db71

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hconf/hconf.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
/gs/conf/net2222:
55
host: "123123111111"
66
port: "123123"
7-
/gs/conf/net3333:
8-
host: ""
9-
port: ""

hconf/hconf_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package hconf
22

33
import (
4+
clientv3 "go.etcd.io/etcd/client/v3"
45
"testing"
56
)
67

@@ -19,6 +20,9 @@ func TestHConf(t *testing.T) {
1920
var conf = Conf{}
2021
r, err := NewHConf(
2122
SetWatchRootName([]string{"/gs/conf"}),
23+
SetEtcdConf(clientv3.Config{
24+
Endpoints: []string{"127.0.0.1:2379"},
25+
}),
2226
)
2327
if err != nil {
2428
t.Error(err)

0 commit comments

Comments
 (0)