Extend FakeCryptoCertificate.cert_not_valid_after to 2 hours

Someone reported this test failing on a slow CI system where
it takes 1.5 hours for their stuff to run. It doesn't seem to
matter what our fake mock expiration time is, so bump it to 2
hours.

Change-Id: I0121fe9da5831d6186bf7954271b79a8b3a60eba
Closes-Bug: #1548724
This commit is contained in:
Matt Riedemann 2016-03-03 17:06:48 -05:00 committed by jichenjc
parent 81184dc1c5
commit a7af3258f8

View File

@ -79,7 +79,7 @@ class FakeCryptoCertificate(object):
not_valid_before=(timeutils.utcnow() -
datetime.timedelta(hours=1)),
not_valid_after=(timeutils.utcnow() +
datetime.timedelta(hours=1))):
datetime.timedelta(hours=2))):
self.pub_key = pub_key
self.cert_not_valid_before = not_valid_before
self.cert_not_valid_after = not_valid_after