From 53d92c18253355f15e3ca0fd07e13608b192dce8 Mon Sep 17 00:00:00 2001 From: Alistair Coles Date: Mon, 6 Nov 2017 09:46:57 +0000 Subject: [PATCH] Increase connection timeout for object controller tests Intermittent test failures due to timeout of *mocked* connections have been reported, so increase the connection timeout in the test app. Closes-Bug: #1730373 Change-Id: I3c91bdff65f8aa06a72f6ad5ec00ee67890b8e61 --- test/unit/proxy/controllers/test_obj.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/proxy/controllers/test_obj.py b/test/unit/proxy/controllers/test_obj.py index 810330609d..ef2ec6259c 100644 --- a/test/unit/proxy/controllers/test_obj.py +++ b/test/unit/proxy/controllers/test_obj.py @@ -169,8 +169,10 @@ class BaseObjectControllerMixin(object): self.logger = debug_logger('proxy-server') self.logger.thread_locals = ('txn1', '127.0.0.2') + # increase connection timeout to avoid intermittent failures + conf = {'conn_timeout': 1.0} self.app = PatchedObjControllerApp( - None, FakeMemcache(), account_ring=FakeRing(), + conf, FakeMemcache(), account_ring=FakeRing(), container_ring=FakeRing(), logger=self.logger) # you can over-ride the container_info just by setting it on the app