test: fix go sdk cases parallel context deadline (#35519)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/35540/head
ThreadDao 2024-08-16 20:32:53 +08:00 committed by GitHub
parent 2736a8b88c
commit 635e9ddb0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -204,7 +204,6 @@ func TestCreateCollectionPartitionKey(t *testing.T) {
int64Field := entity.NewField().WithName(common.DefaultInt64FieldName).WithDataType(entity.FieldTypeInt64).WithIsPrimaryKey(true)
vecField := entity.NewField().WithName(common.DefaultFloatVecFieldName).WithDataType(entity.FieldTypeFloatVector).WithDim(common.DefaultDim)
t.Parallel()
for _, fieldType := range []entity.FieldType{entity.FieldTypeVarChar, entity.FieldTypeInt64} {
partitionKeyField := entity.NewField().WithName("par_key").WithDataType(fieldType).WithIsPartitionKey(true).WithMaxLength(common.TestMaxLen)
@ -517,7 +516,7 @@ func TestCreateCollectionInvalidFields(t *testing.T) {
func TestCreateCollectionInvalidAutoPkField(t *testing.T) {
ctx := hp.CreateContext(t, time.Second*common.DefaultTimeout*2)
mc := createDefaultMilvusClient(ctx, t)
t.Parallel()
// create collection with autoID true or not
collName := common.GenRandomString(prefix, 6)