mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
f4de99e129
issue: #33285 - add streaming coord channel assignment watch client Signed-off-by: chyezh <chyezh@outlook.com>
26 lines
498 B
Go
26 lines
498 B
Go
package client
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus/pkg/util/etcd"
|
|
"github.com/milvus-io/milvus/pkg/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()
|
|
}
|