From ce7e763bb4b4b0d663620e753dea98daeb1e76ca Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Fri, 15 Dec 2023 11:40:31 +0800 Subject: [PATCH] Fix: case error msg change (#639) Signed-off-by: ThreadDao --- test/testcases/search_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testcases/search_test.go b/test/testcases/search_test.go index 7bd8fa41..666cbad6 100644 --- a/test/testcases/search_test.go +++ b/test/testcases/search_test.go @@ -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)