update query case (#6156)

Signed-off-by: del-zhenwu <zhenxiang.li@zilliz.com>
This commit is contained in:
del-zhenwu 2021-06-28 13:08:08 +08:00 committed by GitHub
parent ae66446f16
commit a5f74c4a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,10 +154,10 @@ class TestQueryBase:
res = connect.query(collection, term_expr) res = connect.query(collection, term_expr)
logging.getLogger().info(res) logging.getLogger().info(res)
assert len(res) == default_pos assert len(res) == default_pos
for i in range(default_pos): for _id, index in enumerate(ids):
assert res[i][default_int_field_name] == entities[0]["values"][i] if res[index][default_int_field_name] == entities[0]["values"][index]:
# not support assert res[index][default_float_field_name] == entities[1]["values"][index]
# ut.assert_equal_vector(res[i][ut.default_float_vec_field_name], entities[-1]["values"][i]) # # ut.assert_equal_vector(res[i][ut.default_float_vec_field_name], entities[-1]["values"][i])
def test_query_after_search(self, connect, collection): def test_query_after_search(self, connect, collection):
""" """