未验证 提交 fafcd1e7 编写于 作者: D dragondriver 提交者: GitHub

Add ut for AlterAlias with a short ctx (#13355)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 543cea2c
......@@ -2485,6 +2485,14 @@ func TestProxy(t *testing.T) {
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
})
wg.Add(1)
t.Run("AlterAlias fail, timeout", func(t *testing.T) {
defer wg.Done()
resp, err := proxy.AlterAlias(shortCtx, &milvuspb.AlterAliasRequest{})
assert.NoError(t, err)
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
})
wg.Wait()
cancel()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册