mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
Related to #39095 https://go.dev/doc/modules/version-numbers Update pkg version according to golang dep version convention --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
26 lines
504 B
Go
26 lines
504 B
Go
package client
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/util/etcd"
|
|
"github.com/milvus-io/milvus/pkg/v2/util/paramtable"
|
|
)
|
|
|
|
func TestDial(t *testing.T) {
|
|
paramtable.Init()
|
|
|
|
err := etcd.InitEtcdServer(true, "", t.TempDir(), "stdout", "info")
|
|
assert.NoError(t, err)
|
|
defer etcd.StopEtcdServer()
|
|
c, err := etcd.GetEmbedEtcdClient()
|
|
assert.NoError(t, err)
|
|
assert.NotNil(t, c)
|
|
|
|
client := NewClient(c)
|
|
assert.NotNil(t, client)
|
|
client.Close()
|
|
}
|