Add ut for DropAlias with a short context (#12910)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/12801/head^2
dragondriver 2021-12-08 14:51:18 +08:00 committed by GitHub
parent e09058fe20
commit 6bdbe23e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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()
}