mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
af22977cd3
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
20 lines
335 B
Go
20 lines
335 B
Go
package grpcclient
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestClientBase_SetRole(t *testing.T) {
|
|
base := ClientBase{}
|
|
expect := "abc"
|
|
base.SetRole("abc")
|
|
assert.Equal(t, expect, base.GetRole())
|
|
}
|
|
|
|
func TestClientBase_GetRole(t *testing.T) {
|
|
base := ClientBase{}
|
|
assert.Equal(t, "", base.GetRole())
|
|
}
|