Stop accomodating 5+ year old object-server code in unit tests
Change-Id: Id2597d6a26fa8a1769e8cab1ba5cae29eb1e2942
This commit is contained in:
@@ -2038,10 +2038,7 @@ class TestObjectController(unittest.TestCase):
|
|||||||
|
|
||||||
def __exit__(self, typ, value, tb):
|
def __exit__(self, typ, value, tb):
|
||||||
pass
|
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):
|
with mock.patch.object(object_server, 'ChunkReadTimeout', FakeTimeout):
|
||||||
timestamp = normalize_timestamp(time())
|
timestamp = normalize_timestamp(time())
|
||||||
req = Request.blank(
|
req = Request.blank(
|
||||||
|
Reference in New Issue
Block a user