mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Add ut for CreateAlias when proxy is unhealthy (#12483)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
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
Block a user