mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix querycoord ut bug (#15752)
Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
0cfb6a85be
commit
b41992eda1
@ -413,7 +413,7 @@ func TestGrpcTaskEnqueueFail(t *testing.T) {
|
||||
queryCoord, err := startQueryCoord(ctx)
|
||||
assert.Nil(t, err)
|
||||
|
||||
_, err = startQueryNodeServer(ctx)
|
||||
queryNode, err := startQueryNodeServer(ctx)
|
||||
assert.Nil(t, err)
|
||||
|
||||
taskIDAllocator := queryCoord.scheduler.taskIDAllocator
|
||||
@ -423,6 +423,9 @@ func TestGrpcTaskEnqueueFail(t *testing.T) {
|
||||
|
||||
queryCoord.scheduler.taskIDAllocator = failedAllocator
|
||||
|
||||
waitQueryNodeOnline(queryCoord.cluster, queryNode.queryNodeID)
|
||||
assert.NotEmpty(t, queryCoord.cluster.onlineNodeIDs())
|
||||
|
||||
t.Run("Test LoadPartition", func(t *testing.T) {
|
||||
status, err := queryCoord.LoadPartitions(ctx, &querypb.LoadPartitionsRequest{
|
||||
Base: &commonpb.MsgBase{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user