mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
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:
parent
1a7912e300
commit
97b3c34271
@ -1312,6 +1312,9 @@ class TestNewIndexAsync(TestcaseBase):
|
|||||||
index_name=ct.default_index_name, _async=_async)
|
index_name=ct.default_index_name, _async=_async)
|
||||||
|
|
||||||
# load and search
|
# load and search
|
||||||
|
if _async:
|
||||||
|
res.done()
|
||||||
|
assert len(collection_w.indexes) == 1
|
||||||
collection_w.load()
|
collection_w.load()
|
||||||
vectors_s = [[random.random() for _ in range(ct.default_dim)] for _ in range(ct.default_nq)]
|
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,
|
search_res, _ = collection_w.search(vectors_s[:ct.default_nq], ct.default_float_vec_field_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user