From f5a473edfc03bebcd429766f76299bc9e132250c Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 29 Mar 2015 01:38:16 -0400 Subject: Add socket-level read timeout parameter The underlying requests library supports a timeout input parameter. The other python-*client libraries support passing it in, so while working on shade, it seemed like a great idea to be able to pass in timeout to swiftclient too. For reference, there's a change in shade: I095c1240693abf024bda2315dd77f4400b24a45b that shows interaction with the other libs, and a tentative patch that would consume this one. Change-Id: I699ebb1e092aa010af678de7ba15712da6ed5315 --- tests/unit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/utils.py') diff --git a/tests/unit/utils.py b/tests/unit/utils.py index 3e87ea2..4958c13 100644 --- a/tests/unit/utils.py +++ b/tests/unit/utils.py @@ -220,7 +220,7 @@ class MockHttpTest(testtools.TestCase): on_request = kwargs.get('on_request') def wrapper(url, proxy=None, cacert=None, insecure=False, - ssl_compression=True): + ssl_compression=True, timeout=None): if storage_url: self.assertEqual(storage_url, url) -- cgit v1.2.1