Skip to content

Commit

Permalink
Fix e2e case error message due to milvus change (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Sep 27, 2023
1 parent a9bab45 commit 11ce80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 11ce80c

Please sign in to comment.