fix: Fixed intruder lockout test sometimes failing with LDAP

This commit is contained in:
Félix Rohrlich 2024-12-19 15:53:31 +01:00 committed by sebastien
parent 432fccd875
commit fbeaf951c4

View file

@ -795,10 +795,10 @@ def test_missing_client_id(
def test_logout_login_with_intruder_lockout(testclient, logged_user, client, backend):
testclient.app.config["CANAILLE"]["ENABLE_INTRUDER_LOCKOUT"] = True
# add 100 milliseconds to account for LDAP time
# add 500 milliseconds to account for LDAP time
with time_machine.travel(
datetime.datetime.now(datetime.timezone.utc)
+ datetime.timedelta(milliseconds=100),
+ datetime.timedelta(milliseconds=500),
tick=False,
) as traveller:
res = testclient.get(