[skip e2e]Add timeout for query in deploy test (#14371)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2021-12-27 22:18:20 +08:00 committed by GitHub
parent 0fcd66e0b6
commit 6ddcc7d9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ def load_and_search(prefix):
t0 = time.time()
expr = "count in [2,4,6,8]"
output_fields = ["count", "random_value"]
res = c.query(expr, output_fields)
res = c.query(expr, output_fields, timeout=20)
sorted_res = sorted(res, key=lambda k: k['count'])
for r in sorted_res:
print(r)