From b1a10871e2b2f40fa5d8b0e230b5e330a51c5798 Mon Sep 17 00:00:00 2001 From: congqixia Date: Tue, 20 Feb 2024 12:02:44 +0800 Subject: [PATCH] fix: Use latest error message for range_filter and radius check (#666) See also milvus-io/milvus#30623 --------- Signed-off-by: Congqi Xia --- test/testcases/search_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testcases/search_test.go b/test/testcases/search_test.go index 0c76a1d4..7c03ecfa 100644 --- a/test/testcases/search_test.go +++ b/test/testcases/search_test.go @@ -1230,7 +1230,7 @@ func TestRangeSearchScannL2(t *testing.T) { sp.AddRangeFilter(20) _, errRange := mc.Search(ctx, collName, []string{}, "", []string{"*"}, queryVec, common.DefaultFloatVecFieldName, entity.L2, common.DefaultTopK, sp) - common.CheckErr(t, errRange, false, "range_filter must be less than radius for L2/HAMMING/JACCARD") + common.CheckErr(t, errRange, false, "range_filter(20) must be less than radius(15) for L2/HAMMING/JACCARD") } // test range search with scann index and IP COSINE metric type @@ -1289,7 +1289,7 @@ func TestRangeSearchScannIPCosine(t *testing.T) { sp.AddRangeFilter(10) _, errRange := mc.Search(ctx, collName, []string{}, "", []string{"*"}, queryVec, common.DefaultFloatVecFieldName, metricType, common.DefaultTopK, sp) - common.CheckErr(t, errRange, false, "range_filter must be greater than radius for IP/COSINE") + common.CheckErr(t, errRange, false, "range_filter(10) must be greater than radius(20) for IP/COSINE") } } @@ -1350,7 +1350,7 @@ func TestRangeSearchScannBinary(t *testing.T) { sp.AddRangeFilter(100) _, errRange := mc.Search(ctx, collName, []string{}, "", []string{"*"}, queryVec, common.DefaultBinaryVecFieldName, metricType, common.DefaultTopK, sp) - common.CheckErr(t, errRange, false, "range_filter must be less than radius for L2/HAMMING/JACCARD") + common.CheckErr(t, errRange, false, "range_filter(100) must be less than radius(0) for L2/HAMMING/JACCARD") } }