feat: refactor.
This commit is contained in:
15
registry/etcd/client_test.go
Normal file
15
registry/etcd/client_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package etcd
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewEtcdRegistry(t *testing.T) {
|
||||
var cfg conf.Registry
|
||||
cfg.Etcd.Endpoints = []string{"127.0.0.1:2379"}
|
||||
|
||||
reg := NewRegistry(&cfg)
|
||||
assert.Nil(t, reg)
|
||||
}
|
||||
Reference in New Issue
Block a user