[skip ci] Enable L2 test case (#10342)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
pull/10384/head
binbin 2021-10-21 19:30:25 +08:00 committed by GitHub
parent efd5ac626c
commit 60a45ba08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,6 @@ class TestCollectionSearchInvalid(TestcaseBase):
"err_msg": "metric type not found"})
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail(reason="issue 6727")
@pytest.mark.parametrize("index, params",
zip(ct.all_index_types[:9],
ct.default_index_params[:9]))
@ -289,6 +288,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
collection_w.load()
# 3. search
invalid_search_params = cf.gen_invaild_search_params_type()
message = "Search params check failed"
for invalid_search_param in invalid_search_params:
if index == invalid_search_param["index_type"]:
search_params = {"metric_type": "L2", "params": invalid_search_param["search_params"]}
@ -297,7 +297,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
default_search_exp,
check_task=CheckTasks.err_res,
check_items={"err_code": 0,
"err_msg": "metric type not found"})
"err_msg": message})
@pytest.mark.tags(CaseLabel.L1)
def test_search_param_invalid_limit_type(self, get_invalid_limit):