mirror of https://github.com/milvus-io/milvus.git
Add ut for CreateAlias when ctx is short (#12485)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/12480/head
parent
e813867652
commit
aa154e023c
|
@ -2429,6 +2429,14 @@ func TestProxy(t *testing.T) {
|
||||||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.Status.ErrorCode)
|
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.Status.ErrorCode)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
wg.Add(1)
|
||||||
|
t.Run("CreateAlias fail, timeout", func(t *testing.T) {
|
||||||
|
defer wg.Done()
|
||||||
|
resp, err := proxy.CreateAlias(shortCtx, &milvuspb.CreateAliasRequest{})
|
||||||
|
assert.NoError(t, err)
|
||||||
|
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||||
|
})
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
cancel()
|
cancel()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue