mirror of https://github.com/milvus-io/milvus.git
Add ut for CreateAlias when proxy is unhealthy (#12483)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/12487/merge
parent
4056b414f5
commit
f86bf2c2eb
|
@ -1954,6 +1954,14 @@ func TestProxy(t *testing.T) {
|
|||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.Status.ErrorCode)
|
||||
})
|
||||
|
||||
wg.Add(1)
|
||||
t.Run("CreateAlias fail, unhealthy", func(t *testing.T) {
|
||||
defer wg.Done()
|
||||
resp, err := proxy.CreateAlias(ctx, &milvuspb.CreateAliasRequest{})
|
||||
assert.NoError(t, err)
|
||||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||
})
|
||||
|
||||
wg.Add(1)
|
||||
t.Run("GetPersistentSegmentInfo fail, unhealthy", func(t *testing.T) {
|
||||
defer wg.Done()
|
||||
|
|
Loading…
Reference in New Issue