Add mising timeout to ApplicationCatalogClient
Requests made by tests using this client were not specifiying a timeout, causing them to appear to hang indefinitely when there's a problem. Change-Id: Ibcbe7a4af8566339c68265c11df9a09ebbe7f6ca
This commit is contained in:
parent
cf4eb0cba2
commit
b158b75d2e
|
@ -54,7 +54,7 @@ class ApplicationCatalogClient(rest_client.RestClient):
|
|||
endpoint = self.base_url
|
||||
url = endpoint + uri
|
||||
resp = requests.post(url, files={package_name: files}, data=post_body,
|
||||
headers=headers)
|
||||
headers=headers, timeout=self.build_timeout)
|
||||
self.expected_success(200, resp.status_code)
|
||||
return self._parse_resp(resp.text)
|
||||
|
||||
|
|
Loading…
Reference in New Issue