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

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/13414/head
dragondriver 2021-12-15 10:29:57 +08:00 committed by GitHub
parent 543cea2c62
commit fafcd1e7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -2485,6 +2485,14 @@ func TestProxy(t *testing.T) {
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode) 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() wg.Wait()
cancel() cancel()
} }