Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix e2e case error message due to milvus change #590

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/testcases/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func TestCreateIndexNotSupportedField(t *testing.T) {
// create index
idx, _ := entity.NewIndexHNSW(entity.L2, 8, 96)
err := mc.CreateIndex(ctx, collName, common.DefaultFloatFieldName, idx, false)
common.CheckErr(t, err, false, "index type not match: expected=Trie, actual=HNSW: invalid parameter")
common.CheckErr(t, err, false, "index type not match")
}

// test create index with invalid params
Expand Down Expand Up @@ -447,7 +447,7 @@ func TestDropIndex(t *testing.T) {
errDrop := mc.DropIndex(ctx, collName, common.DefaultFloatVecFieldName)
common.CheckErr(t, errDrop, true)
indexes, errDescribe := mc.DescribeIndex(ctx, collName, common.DefaultFloatVecFieldName)
common.CheckErr(t, errDescribe, false, "index doesn't exist, collectionID")
common.CheckErr(t, errDescribe, false, "index not found")
require.Nil(t, indexes)
}

Expand Down
4 changes: 2 additions & 2 deletions test/testcases/load_release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ func TestLoadCollectionWithoutIndex(t *testing.T) {

collName, _ := createCollectionWithDataIndex(ctx, t, mc, true, false)
errLoad := mc.LoadCollection(ctx, collName, true)
common.CheckErr(t, errLoad, false, "index doesn't exist")
common.CheckErr(t, errLoad, false, "index not found")

// load partitions without index
errLoadPartition := mc.LoadPartitions(ctx, collName, []string{common.DefaultPartition}, true)
common.CheckErr(t, errLoadPartition, false, "index doesn't exist")
common.CheckErr(t, errLoadPartition, false, "index not found")
}

// load collection with multi partitions
Expand Down