From e920b2fb43de39310776c97844cf2078b27d6349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Rohrlich?= Date: Thu, 19 Dec 2024 12:16:39 +0100 Subject: [PATCH] fix: Fixed intruder lockout test sometimes failing with LDAP --- tests/core/test_intruder_lockout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core/test_intruder_lockout.py b/tests/core/test_intruder_lockout.py index 1c718b9d..84bf21d5 100644 --- a/tests/core/test_intruder_lockout.py +++ b/tests/core/test_intruder_lockout.py @@ -15,10 +15,10 @@ def test_intruder_lockout_fail_second_attempt_then_succeed_in_third( with testclient.session_transaction() as session: assert not session.get("user_id") - # 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("/login", status=200)