mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
test: fix repeated random partition name (#35805)
/kind improvement Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
parent
cb49b32358
commit
f068729a26
@ -115,7 +115,7 @@ func TestPartitionsNumExceedsMax(t *testing.T) {
|
|||||||
// create multi partitions
|
// create multi partitions
|
||||||
for i := 0; i < common.MaxPartitionNum-1; i++ {
|
for i := 0; i < common.MaxPartitionNum-1; i++ {
|
||||||
// create par
|
// create par
|
||||||
parName := common.GenRandomString("par", 4)
|
parName := fmt.Sprintf("par_%d", i)
|
||||||
err := mc.CreatePartition(ctx, client.NewCreatePartitionOption(schema.CollectionName, parName))
|
err := mc.CreatePartition(ctx, client.NewCreatePartitionOption(schema.CollectionName, parName))
|
||||||
common.CheckErr(t, err, true)
|
common.CheckErr(t, err, true)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user