Merge "Stop accomodating 5+ year old object-server code in unit tests"

This commit is contained in:
Zuul 2018-10-19 05:39:37 +00:00 committed by Gerrit Code Review
commit c6f9a0e57b
1 changed files with 1 additions and 4 deletions

View File

@ -2038,10 +2038,7 @@ class TestObjectController(unittest.TestCase):
def __exit__(self, typ, value, tb):
pass
# This is just so the test fails when run on older object server code
# instead of exploding.
if not hasattr(object_server, 'ChunkReadTimeout'):
object_server.ChunkReadTimeout = None
with mock.patch.object(object_server, 'ChunkReadTimeout', FakeTimeout):
timestamp = normalize_timestamp(time())
req = Request.blank(