mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Add ut for DropAlias when dd queue is full (#12909)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
3d8a0453b7
commit
e09058fe20
@ -2193,6 +2193,14 @@ func TestProxy(t *testing.T) {
|
||||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||
})
|
||||
|
||||
wg.Add(1)
|
||||
t.Run("DropAlias fail, dd queue full", func(t *testing.T) {
|
||||
defer wg.Done()
|
||||
resp, err := proxy.DropAlias(ctx, &milvuspb.DropAliasRequest{})
|
||||
assert.NoError(t, err)
|
||||
assert.NotEqual(t, commonpb.ErrorCode_Success, resp.ErrorCode)
|
||||
})
|
||||
|
||||
proxy.sched.ddQueue.setMaxTaskNum(ddParallel)
|
||||
|
||||
dmParallelism := proxy.sched.dmQueue.getMaxTaskNum()
|
||||
|
Loading…
Reference in New Issue
Block a user