mirror of https://github.com/milvus-io/milvus.git
Add ut for DropAlias with a short context (#12910)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/12801/head^2
parent
e09058fe20
commit
6bdbe23e9f
|
@ -2461,6 +2461,14 @@ func TestProxy(t *testing.T) {
|
|||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||
})
|
||||
|
||||
wg.Add(1)
|
||||
t.Run("DropAlias fail, timeout", func(t *testing.T) {
|
||||
defer wg.Done()
|
||||
resp, err := proxy.DropAlias(shortCtx, &milvuspb.DropAliasRequest{})
|
||||
assert.NoError(t, err)
|
||||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||
})
|
||||
|
||||
wg.Wait()
|
||||
cancel()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue