test: update test cases (#37476)

pr: #36841

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2024-11-07 16:56:25 +08:00 committed by GitHub
parent 349924615b
commit a3c1fc1848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -443,9 +443,8 @@ class TestQueryParams(TestcaseBase):
collection_w.query(expr_1, check_task=CheckTasks.err_res, check_items=error_1)
expr_3 = f'{ct.default_int64_field_name} in not [1, 2]'
error_3 = {ct.err_code: 65535, ct.err_msg: "cannot parse expression: int64 in not [1, 2], error: "
"contains_any operation are only supported explicitly "
"specified element, got: not[1,2]"}
error_3 = {ct.err_code: 65535, ct.err_msg: "cannot parse expression: int64 in not [1, 2], "
"error: value 'not[1,2]' in list cannot be a non-const expression"}
collection_w.query(expr_3, check_task=CheckTasks.err_res, check_items=error_3)
@pytest.mark.tags(CaseLabel.L1)