mirror of https://github.com/milvus-io/milvus.git
test: update reatful api timeout (#39139)
/kind improvement Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/39164/head
parent
86d665a50f
commit
a8a65641b5
|
@ -10,6 +10,8 @@ from tenacity import retry, retry_if_exception_type, stop_after_attempt
|
||||||
from requests.exceptions import ConnectionError
|
from requests.exceptions import ConnectionError
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
|
REQUEST_TIMEOUT = 120
|
||||||
|
|
||||||
|
|
||||||
ENABLE_LOG_SAVE = False
|
ENABLE_LOG_SAVE = False
|
||||||
|
|
||||||
|
@ -101,7 +103,8 @@ class Requests():
|
||||||
self.headers = {
|
self.headers = {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Authorization': f'Bearer {self.api_key}',
|
'Authorization': f'Bearer {self.api_key}',
|
||||||
'RequestId': self.uuid
|
'RequestId': self.uuid,
|
||||||
|
"Request-Timeout": REQUEST_TIMEOUT
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue