Skip to content

Commit

Permalink
Fix: case error msg change (#639)
Browse files Browse the repository at this point in the history
Signed-off-by: ThreadDao <[email protected]>
  • Loading branch information
ThreadDao authored Dec 15, 2023
1 parent 43226a3 commit ce7e763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testcases/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,11 @@ func TestSearchInvalidVectors(t *testing.T) {
{vectors: common.GenSearchVectors(common.DefaultNq, 64, entity.FieldTypeFloatVector), errMsg: "vector dimension mismatch"},

// vector type not match
{vectors: common.GenSearchVectors(common.DefaultNq, common.DefaultDim, entity.FieldTypeBinaryVector), errMsg: "failed to search"},
{vectors: common.GenSearchVectors(common.DefaultNq, common.DefaultDim, entity.FieldTypeBinaryVector), errMsg: "vector dimension mismatch"},

// empty vectors
{vectors: []entity.Vector{}, errMsg: "nq [0] is invalid"},
{vectors: []entity.Vector{entity.FloatVector{}}, errMsg: "failed to search"},
{vectors: []entity.Vector{entity.FloatVector{}}, errMsg: "vector dimension mismatch"},
}

sp, _ := entity.NewIndexHNSWSearchParam(74)
Expand Down

0 comments on commit ce7e763

Please sign in to comment.