Modify test case for async indexing (#20516)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2022-11-11 16:43:04 +08:00 committed by GitHub
parent 1a7912e300
commit 97b3c34271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1312,6 +1312,9 @@ class TestNewIndexAsync(TestcaseBase):
index_name=ct.default_index_name, _async=_async)
# load and search
if _async:
res.done()
assert len(collection_w.indexes) == 1
collection_w.load()
vectors_s = [[random.random() for _ in range(ct.default_dim)] for _ in range(ct.default_nq)]
search_res, _ = collection_w.search(vectors_s[:ct.default_nq], ct.default_float_vec_field_name,