mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Make DescribeCollection return collectionName (#19000)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com> Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
8403117341
commit
8a45381e53
@ -529,6 +529,7 @@ func (dct *describeCollectionTask) Execute(ctx context.Context) error {
|
||||
CollectionID: 0,
|
||||
VirtualChannelNames: nil,
|
||||
PhysicalChannelNames: nil,
|
||||
CollectionName: dct.GetCollectionName(),
|
||||
}
|
||||
|
||||
result, err := dct.rootCoord.DescribeCollection(ctx, dct.DescribeCollectionRequest)
|
||||
|
@ -1031,7 +1031,7 @@ func TestDescribeCollectionTask_ShardsNum1(t *testing.T) {
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, commonpb.ErrorCode_Success, task.result.Status.ErrorCode)
|
||||
assert.Equal(t, shardsNum, task.result.ShardsNum)
|
||||
|
||||
assert.Equal(t, collectionName, task.result.GetCollectionName())
|
||||
}
|
||||
|
||||
func TestDescribeCollectionTask_ShardsNum2(t *testing.T) {
|
||||
@ -1097,6 +1097,7 @@ func TestDescribeCollectionTask_ShardsNum2(t *testing.T) {
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, commonpb.ErrorCode_Success, task.result.Status.ErrorCode)
|
||||
assert.Equal(t, common.DefaultShardsNum, task.result.ShardsNum)
|
||||
assert.Equal(t, collectionName, task.result.GetCollectionName())
|
||||
rc.Stop()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user