Fix interface change for test cases (#9455)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
pull/9459/head
binbin 2021-10-08 12:20:59 +08:00 committed by GitHub
parent 12d640a023
commit 26be050e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1452,7 +1452,7 @@ class TestCollectionSearch(TestcaseBase):
if _async:
res.done()
res = res.result()
assert abs(res[0]._distances[0] - min(distance_0, distance_1)) <= epsilon
assert abs(res[0].distances[0] - min(distance_0, distance_1)) <= epsilon
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.parametrize("index", ["BIN_FLAT", "BIN_IVF_FLAT"])
@ -1489,7 +1489,7 @@ class TestCollectionSearch(TestcaseBase):
if _async:
res.done()
res = res.result()
assert abs(res[0]._distances[0] - min(distance_0, distance_1)) <= epsilon
assert abs(res[0].distances[0] - min(distance_0, distance_1)) <= epsilon
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail(reason="issue 6843")
@ -1528,7 +1528,7 @@ class TestCollectionSearch(TestcaseBase):
if _async:
res.done()
res = res.result()
assert abs(res[0]._distances[0] - min(distance_0, distance_1)) <= epsilon
assert abs(res[0].distances[0] - min(distance_0, distance_1)) <= epsilon
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("expression", cf.gen_normal_expressions())