test: fix repeated random partition name (#35805)

/kind improvement

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
ThreadDao 2024-09-03 17:13:12 +08:00 committed by GitHub
parent cb49b32358
commit f068729a26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ func TestPartitionsNumExceedsMax(t *testing.T) {
// create multi partitions
for i := 0; i < common.MaxPartitionNum-1; i++ {
// create par
parName := common.GenRandomString("par", 4)
parName := fmt.Sprintf("par_%d", i)
err := mc.CreatePartition(ctx, client.NewCreatePartitionOption(schema.CollectionName, parName))
common.CheckErr(t, err, true)
}