Merge "Change time faking for totp test" into stable/train
This commit is contained in:
commit
b74e95c27f
@ -5306,7 +5306,7 @@ class TestAuthTOTP(test_v3.RestfulTestCase):
|
|||||||
secret = creds[-1]['blob']
|
secret = creds[-1]['blob']
|
||||||
|
|
||||||
past = datetime.datetime.utcnow() - datetime.timedelta(minutes=2)
|
past = datetime.datetime.utcnow() - datetime.timedelta(minutes=2)
|
||||||
with freezegun.freeze_time(past):
|
self.useFixture(fixture.TimeFixture(past))
|
||||||
auth_data = self._make_auth_data_by_id(
|
auth_data = self._make_auth_data_by_id(
|
||||||
totp._generate_totp_passcodes(secret)[0])
|
totp._generate_totp_passcodes(secret)[0])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user