mirror of https://github.com/milvus-io/milvus.git
[skip ci]Assign value to alias_res before try except (#9231)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/9234/head
parent
f2edbf3854
commit
a072f89436
|
@ -271,7 +271,7 @@ class TestAliasOperation(TestcaseBase):
|
||||||
search_params = {"metric_type": "L2", "params": {"nprobe": 10}}
|
search_params = {"metric_type": "L2", "params": {"nprobe": 10}}
|
||||||
|
|
||||||
query = [[random.random() for _ in range(ct.default_dim)] for _ in range(1)]
|
query = [[random.random() for _ in range(ct.default_dim)] for _ in range(1)]
|
||||||
|
alias_res = None
|
||||||
try:
|
try:
|
||||||
alias_res = collection_alias.search(
|
alias_res = collection_alias.search(
|
||||||
query, "float_vector", search_params, topK,
|
query, "float_vector", search_params, topK,
|
||||||
|
|
Loading…
Reference in New Issue