Skip to content

Commit

Permalink
test: update reatful api timeout (#39139)
Browse files Browse the repository at this point in the history
/kind improvement

Signed-off-by: zhuwenxing <[email protected]>
  • Loading branch information
zhuwenxing authored Jan 11, 2025
1 parent 86d665a commit a8a6564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/restful_client_v2/api/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from requests.exceptions import ConnectionError
import urllib.parse

REQUEST_TIMEOUT = 120


ENABLE_LOG_SAVE = False

Expand Down Expand Up @@ -101,7 +103,8 @@ def __init__(self, url=None, api_key=None):
self.headers = {
'Content-Type': 'application/json',
'Authorization': f'Bearer {self.api_key}',
'RequestId': self.uuid
'RequestId': self.uuid,
"Request-Timeout": REQUEST_TIMEOUT
}

@classmethod
Expand Down

0 comments on commit a8a6564

Please sign in to comment.