Skip to content

Commit

Permalink
Merge branch 'fix-intruder-lockout-test' into 'main'
Browse files Browse the repository at this point in the history
fix: Fixed intruder lockout test sometimes failing with LDAP

See merge request yaal/canaille!204
  • Loading branch information
Félix Rohrlich committed Dec 19, 2024
2 parents 8386aad + e920b2f commit a5e0310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/test_intruder_lockout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5e0310

Please sign in to comment.