[ARVADOS] updated: 2.1.0-662-gaa8cdf27e

Git user git at public.arvados.org
Thu Apr 15 19:56:07 UTC 2021


Summary of changes:
 sdk/python/arvados/api.py    | 2 +-
 sdk/python/tests/test_api.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

       via  aa8cdf27e282f48981fca4c68b010cd04dc61213 (commit)
      from  80f26d7ffad85dc15a89bbf6f33a66e206832704 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit aa8cdf27e282f48981fca4c68b010cd04dc61213
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Thu Apr 15 16:53:41 2021 -0300

    17171: Sets default timeout on arvados.api() to 10 seconds.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/sdk/python/arvados/api.py b/sdk/python/arvados/api.py
index 1d8a13045..4fe3999f2 100644
--- a/sdk/python/arvados/api.py
+++ b/sdk/python/arvados/api.py
@@ -157,7 +157,7 @@ def http_cache(data_type):
     return cache.SafeHTTPCache(path, max_age=60*60*24*2)
 
 def api(version=None, cache=True, host=None, token=None, insecure=False,
-        request_id=None, timeout=None, **kwargs):
+        request_id=None, timeout=10, **kwargs):
     """Return an apiclient Resources object for an Arvados instance.
 
     :version:
diff --git a/sdk/python/tests/test_api.py b/sdk/python/tests/test_api.py
index 8fb364356..60183e06a 100644
--- a/sdk/python/tests/test_api.py
+++ b/sdk/python/tests/test_api.py
@@ -104,8 +104,8 @@ class ArvadosApiTest(run_test_server.TestCaseWithServers):
     # Checks for bug #17171
     def test_default_request_timeout(self):
         api = arvados.api('v1')
-        self.assertEqual(api._http.timeout, None,
-            "Default timeout value shouldn't be set")
+        self.assertEqual(api._http.timeout, 10,
+            "Default timeout value should be 10")
 
     def test_ordered_json_model(self):
         mock_responses = {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list