test: update reatful api timeout (#39139)

/kind improvement

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/39164/head
zhuwenxing 2025-01-11 14:21:03 +08:00 committed by GitHub
parent 86d665a50f
commit a8a65641b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,8 @@ from tenacity import retry, retry_if_exception_type, stop_after_attempt
from requests.exceptions import ConnectionError
import urllib.parse
REQUEST_TIMEOUT = 120
ENABLE_LOG_SAVE = False
@ -101,7 +103,8 @@ class Requests():
self.headers = {
'Content-Type': 'application/json',
'Authorization': f'Bearer {self.api_key}',
'RequestId': self.uuid
'RequestId': self.uuid,
"Request-Timeout": REQUEST_TIMEOUT
}
@classmethod