Stop accomodating 5+ year old object-server code in unit tests
Change-Id: Id2597d6a26fa8a1769e8cab1ba5cae29eb1e2942
This commit is contained in:
parent
ab2abfe3ae
commit
781da0704b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user